-
Notifications
You must be signed in to change notification settings - Fork 99
Fixed navbar hover contrast issue #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,7 +20,7 @@ const Navbar: React.FC = () => { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Logo Section */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-2xl font-bold hover:text-gray-300 cursor-pointer flex items-center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-2xl font-bold hover:text-blue-500 cursor-pointer flex items-center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <img src="/crl-icon.png" alt="CRL Icon" className="h-8 mr-2" /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GitHub Tracker | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -30,25 +30,25 @@ const Navbar: React.FC = () => { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="hidden md:flex space-x-6"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/track" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium text-black hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-blue-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tracker | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
31
to
42
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent hover styling between Home and Tracker links. The Home link uses ♻️ Proposed fix for consistent styling <Link
to="/"
- className="text-lg font-medium hover:text-blue-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded"
+ className="text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-blue-400 rounded"
>
Home
</Link>
<Link
to="/track"
- className="text-lg font-medium text-black hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-blue-400 rounded"
+ className="text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-blue-400 rounded"
>
Tracker
</Link>This unifies both links to use 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/contributors" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Contributors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/login" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Login | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -91,35 +91,35 @@ const Navbar: React.FC = () => { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="space-y-4 px-6 py-4"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-blue-600 transition-all px-2 py-1 border border-transparent hover:border-black rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => setIsOpen(false)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/about" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-blue-00 transition-all px-2 py-1 border border-transparent hover:border-black rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => setIsOpen(false)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| About | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/contact" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-blue-500 transition-all px-2 py-1 border border-transparent hover:border-black rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => setIsOpen(false)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Contact | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/contributors" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-blue-500 transition-all px-2 py-1 border border-transparent hover:border-black rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => setIsOpen(false)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Contributors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/login" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="block text-lg font-medium hover:text-blue-500 transition-all px-2 py-1 border border-transparent hover:border-black rounded" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => setIsOpen(false)} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Login | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Explicit
text-blackbreaks dark mode visibility.The Tracker link specifies
text-blackwithout a dark mode variant. This will override the parent'sdark:text-whiteclass, rendering the link invisible (or extremely low contrast) in dark mode.🐛 Proposed fix
Remove the explicit
text-blackto allow the parent'stext-black dark:text-whiteto apply correctly. Also fixes the double space.📝 Committable suggestion
🤖 Prompt for AI Agents