Skip to content

Add Active Navigation State Indicator in Navbar #751

Description

@mythri2405

Problem Statement

The navigation bar currently does not provide a visual indication of the active page. All navigation items appear identical, making it difficult for users to determine their current location within the website.

Proposed Solution

Implement an active state indicator for navbar links.

Possible approaches:

  • Highlight the active tab with a different text color.
  • Add an underline or bottom border to the active item.
  • Use a pill-style background for the selected tab.
  • Add a smooth transition animation when switching between tabs.

The active state should update automatically based on the current route.

Expected Outcome

  • Users can instantly identify which page they are currently viewing.
  • Improved navigation clarity and overall user experience.
  • Consistent and modern navigation behavior across the application.

Steps

  1. Identify the current route using the routing solution used in the project.
  2. Apply an active class/style to the corresponding navigation item.
  3. Design a visually distinct active state that matches the existing theme.
  4. Ensure the active indicator updates correctly when navigating between pages.
  5. Test responsiveness across desktop and mobile views.

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions