Skip to content

docs: px-scale sizes for the Sidebar, Nav and Scrubber demos - #585

Merged
lorant-one merged 1 commit into
previewfrom
fix/sidebar-docs-height
Nov 23, 2026
Merged

lorant-one merged 1 commit into
previewfrom
fix/sidebar-docs-height

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Fixes the board post "Sidebar docs demo is too short to show the sidebar".

In 3.0 a bare number on a size prop means pixels (on the token scale). Three docs demos still used 2.x rem counts:

  • Sidebar: the frame had height={28}, which is 28px. Only the header showed, with a scrollbar. It is now height={448} (28rem), so the sidebar, its rail and the content all show.
  • Nav: expandOnHover used expandedWidth={12}, which opened to 12px. It is now 192, in both the demo and the code snippet.
  • Scrubber: the hover preview was width={8} height={4.5}, so 8 by 4.5px. It is now 128 by 72.

I checked the Sidebar demo in the docs dev server: the sidebar, its groups and the content panel all show without scrolling. check-examples is clean.


Generated by Claude Code

3.0 reads a bare number on a size prop as pixels on the token scale.
Three demos still used 2.x rem counts: the Sidebar frame was 28px tall
(only its header showed, behind a scrollbar), Nav's expandOnHover
opened to 12px, and the Scrubber hover preview was 8 by 4.5px. They are
448, 192 and 128 by 72 now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk

Copy link
Copy Markdown
Member Author

The Compare check flagged a visual change. That's intended: the Sidebar, Nav and Scrubber demos now render at their real sizes. I added the visual-change label.


Generated by Claude Code

@lorant-one
lorant-one merged commit 1367c64 into preview Nov 23, 2026
13 of 14 checks passed
@lorant-one lorant-one added the approved label Nov 23, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 23, 2026
6 tasks done
@lorant-one
lorant-one deleted the fix/sidebar-docs-height branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants