Skip to content

fix: dropdown options nest in the panel's corners in the rounded style - #545

Merged
lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
feat/3-0-breaking-cleanup-giduz4
Nov 17, 2026
Merged

lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
feat/3-0-breaking-cleanup-giduz4

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Before: in the rounded border style, a dropdown panel rounds to radius l (28px), but a one-line option (34px tall) can round to only 17px, so the highlighted first or last option sits in the corner with a gap that widens towards the curve (seen on the lorant.one language menu).

After: a panel that takes radius l rounds to at most 22px (1.375rem), which is the option's 17px plus the panel's 1px border and 4px padding, and options follow the same cap, so their corners nest. A panel given another radius prop keeps it. The other border styles are unchanged, since their radius l is already below the cap.

How: DropdownPanel.module.scss caps .radius-l on the panel with min(var(--radius-l), 1.375rem). Option.module.scss uses the same cap minus the padding and drops a duplicated block. DropdownPanel now passes the caller's className through, which it used to drop.


Generated by Claude Code

Radius l is 28px in the rounded border style, but a one-line option can
round to only 17px, so the highlighted first option left a gap towards
the panel's curve. A panel with radius l now rounds to at most 22px and
options follow it. DropdownPanel also passes the caller's className on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
@lorant-one
lorant-one merged commit 1f27256 into feat/3-0-breaking-cleanup Nov 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants