Skip to content

Conversation

@sanket-rajput
Copy link

Summary

This PR resolves issue #647 by adding a clear active-state indicator to the main navbar.
It improves usability and navigation clarity across the application.

Changes included

✔ Implemented active route detection using useLocation()
✔ Added isActive() helper for route comparison
✔ Applied active class to corresponding nav links
✔ Styled active link with:

  • White text color
  • Bold font weight
  • Underline indicator
  • Smooth transitions for improved UX

Why this is needed

Users currently cannot see which page is active in the navbar.
This update provides a consistent visual cue and improves overall navigation experience.

Files modified

  • Header.tsx
  • header.scss

Issue reference

Fixes #647


Please let me know if you'd like any adjustments!
Screenshot 2025-12-05 012025
Screenshot 2025-12-05 011546

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changes to dependencies are not necessary for this PR, please undo the changes to yarn.lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Visual Indicator for Active Navigation Link in Navbar

2 participants