Skip to content

Commit a502284

Browse files
committed
Move button padding to its children elements
1 parent c85046c commit a502284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/input/Select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ function SelectMain<T>({
560560
id={buttonId ?? defaultButtonId}
561561
className={classnames(
562562
'focus-visible-ring transition-colors whitespace-nowrap',
563-
'w-full flex items-center justify-between gap-x-2 p-2',
563+
'w-full flex items-center justify-between gap-x-2',
564564
'bg-grey-0 disabled:bg-grey-1 disabled:text-grey-6',
565565
// Buttons are center-aligned by default. Overwrite it.
566566
'text-left',
@@ -589,8 +589,8 @@ function SelectMain<T>({
589589
}}
590590
data-testid="select-toggle-button"
591591
>
592-
<div className="truncate grow">{buttonContent}</div>
593-
<div className="text-grey-6">
592+
<div className="pl-2 py-2 truncate grow">{buttonContent}</div>
593+
<div className="pr-2 py-2 text-grey-6">
594594
{listboxOpen ? <MenuCollapseIcon /> : <MenuExpandIcon />}
595595
</div>
596596
</button>

0 commit comments

Comments
 (0)