Skip to content

[api-extractor] Navbar options (API, GitHub, Help) do not show active navigation state #296

@dwivediprashant

Description

@dwivediprashant

Summary

While browsing the API Extractor documentation site, I observed that certain navbar options (API, GitHub, and Help) do not visually reflect the active navigation state. After navigating to these sections, the navbar does not highlight or otherwise indicate the currently selected item, making it unclear which section is active.

Repro steps

  1. Open the API Extractor documentation site : https://api-extractor.com/
  2. Click on navbar options such as API, GitHub, or Help.
  3. Observe the navbar state after navigation. They do not displaying blue coloured activation state.

Expected result:

  • The currently selected navbar option should be visually highlighted or marked as active.

Actual result:

  • The navbar does not show any active state for API, GitHub, or Help options.

Details

This appears to be a UI/navigation state issue where certain navbar links are not included in the active-route detection logic. These links may be external routes or handled differently, so the active class/state is not being applied.

Screenshots

API route displaying docs option active

Image

Github route displaying docs option active

Image

Help route displaying docs option active

Image

A possible fix could involve:

  • Ensuring these routes are included in the active route matching logic.
  • Applying consistent active state handling for both internal and external navigation items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions