Repository navigation
Restore nav link underlines in Forced Colors mode - #464
Merged
Merged
Conversation
The top-level nav links lost their forced colors underline because a later text-decoration: none overrode the mixin. The dropdown row and card links never had it. Add a $remove-underline option to high-contrast-text-decoration so the reset always comes first. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
jhancock532
approved these changes
Sep 28, 2026
jhancock532
left a comment
Contributor
There was a problem hiding this comment.
Tested locally, LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Forced Colors mode, the top-level nav links and the dropdown links weren't underlined.
text-decoration: noneplaced after thehigh-contrast-text-decorationmixin was overriding its underline.The fix gives the mixin an optional
$remove-underline: trueargument. With it, the mixin removes the default underline before adding theforced-colorsone, so the order is always right and stylelint still passes.To test: turn on Forced Colors mode and check that the top-level nav and dropdown links are underlined. Outside Forced Colors mode, they should look the same as before.
Link to Ticket
Description of Changes Made
How to Test
Screenshots
Expand to see more
MR Checklist
Unit tests
Documentation
Browser testing
Data protection
Light and dark mode
Accessibility
Sustainability
Pattern library