Skip to content

docs: Highlight currently active page in sidebar navigation #9992#9993

Open
harshitkandpal wants to merge 1 commit into
encode:mainfrom
harshitkandpal:fix/highlight-active-sidebar-page
Open

docs: Highlight currently active page in sidebar navigation #9992#9993
harshitkandpal wants to merge 1 commit into
encode:mainfrom
harshitkandpal:fix/highlight-active-sidebar-page

Conversation

@harshitkandpal

Copy link
Copy Markdown

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.css file 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-color branding 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

  • I have read the CONTRIBUTING.md document.
  • My changes only affect the documentation styling (extra.css) and do not modify core logic.
  • Verified locally using mkdocs serve across pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant