Repository navigation
docs: px-scale sizes for the Sidebar, Nav and Scrubber demos - #585
Merged
Merged
Conversation
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
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 Generated by Claude Code |
6 tasks done
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.
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:
height={28}, which is 28px. Only the header showed, with a scrollbar. It is nowheight={448}(28rem), so the sidebar, its rail and the content all show.expandOnHoverusedexpandedWidth={12}, which opened to 12px. It is now192, in both the demo and the code snippet.width={8} height={4.5}, so 8 by 4.5px. It is now128by72.I checked the Sidebar demo in the docs dev server: the sidebar, its groups and the content panel all show without scrolling.
check-examplesis clean.Generated by Claude Code