Highlight currently active page in sidebar docs navigation#9993
Merged
browniebroke merged 6 commits intoJul 1, 2026
Merged
Conversation
Contributor
Author
|
Hey @browniebroke |
browniebroke
reviewed
Jul 1, 2026
browniebroke
previously approved these changes
Jul 1, 2026
browniebroke
previously approved these changes
Jul 1, 2026
browniebroke
reviewed
Jul 1, 2026
Contributor
Author
|
Hey @browniebroke, I've updated the CSS selector to use the --md-accent-fg-color--dark token as you suggested so it fully complies with the WCAG AA accessibility standards. All the CI checks have passed successfully again. Ready for another look whenever you have a moment! |
browniebroke
approved these changes
Jul 1, 2026
Member
|
Thanks! |
Contributor
Author
|
Thanks @browniebroke! |
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.
Description
This PR addresses a minor documentation UI issue where the currently viewed page is not visually highlighted or distinguished in the sidebar navigation. This can make it disorienting to know exactly which section a reader is currently browsing.
I have updated the custom
extra.cssfile to target the theme's active navigation link component (a.md-nav__link.md-nav__link--active), applying a bold font-weight and utilizing the project's pre-defined--md-accent-fg-colorbranding token. This ensures a clear visual cue that remains seamless across both light and dark modes without highlighting the entire parent category header accidentally.Related Discussion
As requested in the contributing guidelines, this pull request follows an approved proposal:
Fix #9992
Checklist
CONTRIBUTING.mddocument.extra.css) and do not modify core logic.mkdocs serveacross pages.