Skip to content

Commit ae76d13

Browse files
committed
Add inherited rounded corners to SelectNext toggle
1 parent 82e9952 commit ae76d13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/input/SelectNext.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ function SelectMain<T>({
196196
classes={classnames(
197197
'w-full flex',
198198
'bg-grey-0 disabled:bg-grey-1 disabled:text-grey-6',
199+
// Add inherited rounded corners so that the toggle is consistent with
200+
// the wrapper, which is the element rendering borders.
201+
// Using overflow-hidden in the parent is not an option here, because
202+
// that would hide the listbox
203+
'rounded-[inherit]',
199204
classes,
200205
)}
201206
expanded={listboxOpen}

0 commit comments

Comments
 (0)