Repository navigation
fix(Option): nest option corners inside the dropdown panel - #386
Merged
Merged
Conversation
…border style Options sit in a panel of radius l with 4px of padding. They used radius-m, which equals l minus 4px in playful and conservative, but in rounded it was 1.25rem inside a 1.75rem panel, so the corners did not nest. The option's radius is now the panel's radius minus the padding (0 in sharp), at zero specificity so a radius prop still overrides it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtxDA44PBmq1LXoaXvt
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
Options sit in a dropdown panel of
radius="l"with 4px of padding (DropdownWrapper, ContextMenu, Select, DatePicker). They usedradius="m", which equals the panel radius minus 4px inplayfulandconservative, but not inrounded: a 1.25rem option inside a 1.75rem panel, so the corners don't nest (seen on a Tavilio site's language switcher).The option's radius is now
max(0rem, var(--radius-l) - 0.25rem), set under:where(.option)so aradiusprop on the option still overrides it.Only
roundedchanges visually; the other values were measured with Chromium computed styles against the compiled tokens.Checks
pnpm --filter @once-ui-system/core buildvitest run src/__tests__/option.interaction.test.tsx(12 passed), biome cleanA matching PR targets
feat/3-0-breaking-cleanupso it lands in 3.0.0-beta.1.Generated by Claude Code