Repository navigation
fix(docs-site): quiet active state for sidebar, drawer, and TOC links - #297
Merged
Merged
Conversation
Replace the brand-orange bold pill on the current sidebar/drawer page with ink text at medium weight on a faint ink tint, keeping the brand color only on the quick-nav icon. TOC, section triggers, and hover states share the same tokens. Co-authored-by: vyctorbrzezowski <51521767+vyctorbrzezowski@users.noreply.github.com>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <51521767+vyctorbrzezowski@users.noreply.github.com> OpenClaw-Publication: 6b3b8f2a-749e-4ba7-b26b-74c16a62226e
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.
Summary
The current-page link in the docs sidebar was rendered as brand-orange, semibold text inside a filled pill, which read as heavy. This switches every "you are here" surface to one quieter treatment.
--docs-nav-active-bg). The brand color stays only on the quick-nav icon as a small accent.aria-current): weight 600 → 500 to match.--docs-nav-hover-bg, so hover stays lighter than active. The "Back" button keeps its surface hover.Only
scripts/docs-site/docs-layout.cssandscripts/docs-site/smoke.mjschange. The basesite-css.mjsskin, which the existing smoke check covers, is unchanged.Verification
npm run docs:build:preview+ Playwright screenshots, before and after: desktop sidebar/TOC (dark + light), mobile drawer (dark + light), mobile TOC sheet.npm run docs:build:shell(15,547 pages) +node scripts/docs-site/smoke.mjs→docs site smoke ok.node --test scripts/docs-site/*.test.mjs: all pass except 7head-drift.test.mjscases. Those fail locally because they callgh workflow runwithout GitHub CLI auth, which this change does not touch.Worked on by