Repository navigation
fix: dropdown options nest in the panel's corners in the rounded style - #545
Merged
lorant-one merged 1 commit intoNov 17, 2026
Merged
Conversation
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
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.
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.scsscaps.radius-lon the panel withmin(var(--radius-l), 1.375rem).Option.module.scssuses the same cap minus the padding and drops a duplicated block.DropdownPanelnow passes the caller'sclassNamethrough, which it used to drop.Generated by Claude Code