Skip to content

fix: add hover states to navbar links#583

Open
HarshalKushwaha0027 wants to merge 1 commit into
GitMetricsLab:mainfrom
HarshalKushwaha0027:fix-navigation-bar-hover-state-on-links
Open

fix: add hover states to navbar links#583
HarshalKushwaha0027 wants to merge 1 commit into
GitMetricsLab:mainfrom
HarshalKushwaha0027:fix-navigation-bar-hover-state-on-links

Conversation

@HarshalKushwaha0027
Copy link
Copy Markdown

@HarshalKushwaha0027 HarshalKushwaha0027 commented May 27, 2026

Related Issue


Description

Added interactive hover states to the main navigation links (Tracker, Contributors, Login) to improve UX and accessibility.

Previously, inactive links lacked visual feedback on hover due to conflicting Tailwind text classes and missing dark mode hover rules. I refactored the navLinkStyles in Navbar.tsx to strictly apply hover:text-blue-600 and hover:bg-gray-50 (along with their respective dark: mode variants) only to the inactive state, resolving the conflict.


How Has This Been Tested?

  • Ran the local development server (npm run dev).
  • Verified hover text and background color transitions on all inactive tabs.
  • Tested both Light Mode and Dark Mode to ensure contrast and consistency.

Screenshots

Recording.2026-05-28.015950.mp4

Type of Change

  • Bug fix
  • New feature
  • Code style update
  • Breaking change
  • Documentation update

Summary by CodeRabbit

  • Style
    • Updated navigation link hover styling to provide enhanced visual feedback for inactive menu items across light and dark modes.

Review Change Stack

@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit ad4e0b8
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a1754d5f26075000948c630
😎 Deploy Preview https://deploy-preview-583--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

📝 Walkthrough

Walkthrough

The PR updates inactive navigation link styling in the Navbar component. Hover interactions now display text-blue-600 text color and bg-gray-50 background (with dark-mode variants), replacing the previous simpler inactive hover appearance.

Changes

Navbar Inactive Link Hover Styling

Layer / File(s) Summary
Inactive nav link hover styling
src/components/Navbar.tsx
The navLinkStyles inactive branch updates hover text color to hover:text-blue-600 and adds hover background styling (hover:bg-gray-50 plus dark-mode equivalents) for improved visual feedback.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related issues

Possibly related PRs

Suggested labels

level:intermediate, type:accessibility, type:bug, quality:clean

Poem

A rabbit hops through nav so fine,
Hovers now with blue outline,
Gray backgrounds greet the weary eye,
Dark mode shines as time goes by. ✨🐰

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR claims to close #548, which reports a blank login screen due to missing ArrowLeft import, but the changes only modify Navbar hover states unrelated to the login error. Review whether #548 is the correct linked issue. The PR changes do not address the ArrowLeft import error described in #548; verify the intended issue or add the missing login page fix.
Out of Scope Changes check ⚠️ Warning The navbar hover state changes are unrelated to issue #548's ArrowLeft import error, representing a scope mismatch between stated objectives and actual code changes. Either correct the linked issue to match the navbar changes or add the missing ArrowLeft import fix to address the stated issue #548.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: add hover states to navbar links' accurately describes the main change—adding hover styling to navbar links—and is clear and specific.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description covers all required template sections with relevant details about the changes, testing, and type of change classification.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: Missing Hover States on Navbar Links

1 participant