Repository navigation
fix(segmented-control): rail corners nest round the options at every size, padding and border style - #561
Merged
lorant-one merged 1 commit intoNov 19, 2026
Conversation
…size, padding and border style The rail took its corners from the `-nest-4` tokens, and a `compact` rail always took "l": 16px round 8px options in playful (Frametic's feature switches), and in conservative the nest tokens add 2px for 4px of padding. The rail now computes its radius from the options' own token: radius + padding (2px compact, 4px otherwise) + the 1px border. Options without a size follow the density in CSS. Large tokens on short buttons clamp to a pill on both, so they still nest. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
lorant-one
merged commit Nov 19, 2026
c8cc3e1
into
fix/setting-control-collapsed-slider
10 checks passed
This was referenced Nov 19, 2026
lorant-one
added a commit
that referenced
this pull request
Nov 23, 2026
#560) * fix(setting): let the control area grow so sliders and inputs keep their width Since 3.0.0 the labelled Setting row capped its control area with a CSS max-width and nothing else, so the area was only as wide as its content. A control that fills its parent (Slider, Input, a fill-width SegmentedControl) had no width to fill and collapsed: a Slider showed only its thumb next to its value. The area now grows into the free space up to controlWidth. Wrapping is still decided by content size, and horizontal="end" keeps a button at the trailing edge. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtz72GNFGSy7czLGPrC * docs(changelog): Setting control area fix Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtz72GNFGSy7czLGPrC * fix(segmented-control): rail corners nest round the options at every size, padding and border style (#561) The rail took its corners from the `-nest-4` tokens, and a `compact` rail always took "l": 16px round 8px options in playful (Frametic's feature switches), and in conservative the nest tokens add 2px for 4px of padding. The rail now computes its radius from the options' own token: radius + padding (2px compact, 4px otherwise) + the 1px border. Options without a size follow the density in CSS. Large tokens on short buttons clamp to a pill on both, so they still nest. Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk Co-authored-by: Claude <[email protected]> * fix(toggle-button): long labels truncate instead of pushing the suffix out of the box (#564) * fix(toggle-button): long labels truncate instead of pushing the suffix out of the box A label too long for the button ran out of it: the label area kept its content width, so a long title overflowed and took the suffix icon (or a tag) with it, as in the docs sidebar's "Design system for AI coding agents". Now: - labels end in an ellipsis by default (`truncate` defaults to true; `false` keeps the old full-width label) - the label area can shrink (min-width 0) for node labels too - prefix and suffix icons keep their size (flex-shrink 0) - a fillWidth button may shrink with its parent The docs sidebar puts its title in a truncating Text, so the ellipsis shows and the availability tag stays whole. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk * fix(toggle-button): truncate by default only when the button fills its parent The visual check showed the always-on default squeezing fit-width pills in scrolling strips ("Today" to "Tod…") and SegmentedControl options to an equal share ("Categorical" to "Categori…") where they fit. Left out, `truncate` now follows `fillWidth`: a sidebar row truncates, a pill keeps its full label. SegmentedControl passes `truncate={false}`, as it shares and truncates its options itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk * fix(toggle-button): leave a fill-width button's own min-width alone Letting a fill-width button shrink below its content made SegmentedControl's shared options split the row evenly instead of by their labels (the second visual check). A sidebar row truncates without it: its column fixes its width. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk --------- Co-authored-by: Claude <[email protected]> * fix(option): danger option's label carries the contrast, its icon the colour (#567) A danger option drew label and icon in the saturated danger tone, so on dark the label read dimmer than the rows around it. The label now takes danger-on-background-medium and the prefix icon danger-on-background-weak, the same quiet-icon, strong-label order as a plain option. Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk Co-authored-by: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
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.
Stacked on #560 so both ship together in the weekend 3.0.1 patch. Chirio board item 9b7ff891 (Frametic /admin/features: the compact, size
sSegmentedControl's rail was far rounder than its options).Cause
The rail took its corners from the
-nest-4tokens, and acompactrail always tookl, because 2px padding has no nest token. Measured before, rail vs option radius:Fix
The rail's radius is computed from the options' own token:
calc(radius + padding + 1px border), with padding 2px compact and 4px otherwise. When the options have nosize, the inner radius comes from CSS and follows the density (s / m / l). Large tokens on short buttons clamp to a pill on both, so they still nest. The pill and the options are unchanged.Checks
vitest run src/__tests__/segmented-control src/__tests__/ai: 766 passed. The rail tests are rewritten: size, compact, an explicit radius over the size,none, and no size leaving the inner radius to CSS.[Unreleased]entry next to fix(setting): sliders in a Setting row collapse to their thumb (3.0.0) #560's.Generated by Claude Code