fix navbar link hover color invisible on white background#54946
fix navbar link hover color invisible on white background#54946pateldhruv26 wants to merge 2 commits intokubernetes:mainfrom
Conversation
|
Welcome @pateldhruv26! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Preview tested at the Netlify deploy link above. (link: https://deploy-preview-54946--kubernetes-io-main-staging.netlify.app/) Navbar hover color is now correctly visible on white background.
|
|
Updated the fix based on reviewer feedback:
Before: specificity 0,3,1 ( Tested locally — fix works correctly without |
|
Thanks LGTM |
|
BTW |
|
Thanks for pointing that out! I've updated the PR description Both PRs solve the same bug.If #54943 is preferred I will close mine, or keep iterating if |
I agree, I think so too |
|
As #54943 has merged: |
|
@lmktfy: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |

Description
The navbar has two states:
When
.navbar-bg-onscrollis active (white background), hoveringover nav links was triggering
.navbar-dark's hover rule which settext color to white — making links invisible (white text on white background).
Root cause: The original code only handled
&:hover:focus(both simultaneously) but was missing separate
&:hoverand&:focusrules. So a simple hover had no override and
.navbar-darktook over.Fix: Added separate
&:hoverand&:focusselectors with$medium-grey !importantto override.navbar-darkcorrectly.Issue
Closes: #54938