Skip to content

fix(Option): nest option corners inside the dropdown panel - #386

Merged
lorant-one merged 1 commit into
previewfrom
fix/dropdown-nested-radius
Nov 3, 2026
Merged

lorant-one merged 1 commit into
previewfrom
fix/dropdown-nested-radius

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

What

Options sit in a dropdown panel of radius="l" with 4px of padding (DropdownWrapper, ContextMenu, Select, DatePicker). They used radius="m", which equals the panel radius minus 4px in playful and conservative, but not in rounded: 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 a radius prop on the option still overrides it.

data-border panel option before option after
playful 16px 12px 12px
conservative 10px 6px 6px
rounded 28px 20px 24px
sharp 0 0 0

Only rounded changes visually; the other values were measured with Chromium computed styles against the compiled tokens.

Checks

  • pnpm --filter @once-ui-system/core build
  • vitest run src/__tests__/option.interaction.test.tsx (12 passed), biome clean

A matching PR targets feat/3-0-breaking-cleanup so it lands in 3.0.0-beta.1.


Generated by Claude Code

…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
@lorant-one lorant-one self-assigned this Oct 31, 2026
@lorant-one
lorant-one merged commit 8454cc1 into preview Nov 3, 2026
10 checks passed
@lorant-one lorant-one added the approved label Nov 3, 2026 — with Claude
@lorant-one
lorant-one deleted the fix/dropdown-nested-radius branch November 15, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants