docs: Highlight currently active page in sidebar navigation #9992#9993
Open
harshitkandpal wants to merge 1 commit into
Open
docs: Highlight currently active page in sidebar navigation #9992#9993harshitkandpal wants to merge 1 commit into
harshitkandpal wants to merge 1 commit into
Conversation
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:
Fixes / References: #9992
Checklist
CONTRIBUTING.mddocument.extra.css) and do not modify core logic.mkdocs serveacross pages.