Repository navigation
fix(CodeBlock): file tabs are a SegmentedControl, so the selection slides - #508
Merged
Merged
Conversation
…ides The row of files above the code was a set of ToggleButtons, so the selected background jumped. It is now a SegmentedControl: the background slides, the files are tabs with arrow-key focus, and the rail drops its border inside the block's own. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
…-segmented # Conflicts: # CHANGELOG.md
4 tasks done
lorant-one
pushed a commit
that referenced
this pull request
Nov 19, 2026
Pulse's reduced-motion fix (#509) moves to PulseRing, which StatusIndicator pulse draws in 3.0; CodeBlock's file tabs (#508) use SegmentedControl's onValueChange; rimraf ^6.1.4 (#529); lockfile regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
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.
Requested by Lorant · project thread
What
The row of files above a multi-file
CodeBlock(Preview / Store / Header4 …) was built from separateToggleButtons, so the selected background jumped from one file to the next. It's now aSegmentedControl:tablist/tab), and the arrow keys move between them..tabs [role="tablist"]inCodeBlock.module.scss), so you don't get a box inside the block's border.onInstanceChangestill reports the index. The oldhandleContenthelper looked a file up by its label, so two files with the same label picked the wrong one. It is gone, and the index is used directly.This doesn't break anything: no prop changes, so it goes to
preview, not 3.0.Checks
button; they now look fortab.visual-change.Generated by Claude Code