Skip to content

🎨 Let the docs sidebar read as links, not boxes - #540

Merged
taras merged 1 commit into
mainfrom
fix/docs-sidebar-link-style
Aug 22, 2026
Merged

🎨 Let the docs sidebar read as links, not boxes#540
taras merged 1 commit into
mainfrom
fix/docs-sidebar-link-style

Conversation

@taras

@taras taras commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Why

The documentation sidebar presents every destination as a ruled box. That treatment makes navigation links look like controls and adds visual weight beside long-form documentation.

What changes

Before:

The sidebar is one bordered stack with dividers, padded items, inverted hover styling, and an inverted current-page item.

After:

The sidebar reads as a compact list of links. Hover and current-page states use a stable leading rule, the current page uses the green accent, and keyboard focus keeps an explicit visible outline.

How it works

The sidebar removes the enclosing and divider borders, reduces link padding, reserves a transparent left rule to prevent state changes from shifting text, and applies existing theme colors to hover, focus, and current-page states.

How to verify it

  • Open any documentation page and confirm the sidebar appears as a plain link list rather than a boxed control group.
  • Hover links, select the current page, and navigate with Tab; text does not shift and hover, current, and focus states remain distinct.
  • Check both color schemes to confirm the existing theme variables keep every state legible.
  • git diff --check origin/main...origin/fix/docs-sidebar-link-style passes, catching whitespace errors in the patch.

Scope

Included

  • Restyle documentation sidebar links and their hover, focus, and current-page states.

Intentionally unchanged

  • Navigation markup, destinations, ordering, responsive layout, and all non-sidebar components remain unchanged.

Risks and limitations

  • This is a presentation-only change; rollback is the single stylesheet commit.

Scope confirmation

  • Every changed file supports the purpose described above.
  • Unrelated cleanup and formatting changes are excluded.
  • No generated or mechanical changes are present.
  • The description matches the final diff and verification performed.

.doc-nav ruled the whole stack and every item within it, so the eight
entries read as a column of outlined squares rather than a nav. Hover
and the current page filled a row with --panel, which in the dark
palette is #201e1a against #131210 paper — the current page was close
to invisible there.

Drop the rules and the fills. Entries are now plain stacked links in
--body, and the current page takes the accent: green text at weight
800 behind a green leading rule. That rule is transparent at rest, so
marking an entry shifts no text. Hover lifts the colour to --ink and
shows the rule in --line, and :focus-visible now draws an accent
outline where nothing marked keyboard focus before.

Sidebar width, the Documentation label, the entries and their hrefs,
and the main content position are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0125zbFPKdEhKdUJxuRufpfj
@github-actions

Copy link
Copy Markdown

PR #540: 🎨 Let the docs sidebar read as links, not boxes

1 files, +15 / -11

Scope

✅ PR scope looks good.

Structural

✅ No structural bloat detected.

Slop

✅ Slop indicators look low.

Static Analysis

✅ Oxlint found no issues.

Correctness

No extraneous code patterns detected.

@taras
taras merged commit 307ca55 into main Aug 22, 2026
15 of 17 checks passed
@taras
taras deleted the fix/docs-sidebar-link-style branch August 22, 2026 17:55
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.

2 participants