Skip to content

Commit d273471

Browse files
committed
fix: border issue
1 parent d2ca570 commit d273471

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Shared/Components/SelectPicker/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], Pick
3131
}
3232

3333
export const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['minHeight']> = {
34-
[ComponentSizeType.small]: '28px',
35-
[ComponentSizeType.medium]: '32px',
34+
[ComponentSizeType.small]: 'auto',
35+
[ComponentSizeType.medium]: 'auto',
3636
[ComponentSizeType.large]: '36px',
3737
}

src/Shared/Components/SelectPicker/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ const getVariantOverrides = <OptionValue>(
6868
}
6969
case SelectPickerVariantType.BORDER_LESS:
7070
return {
71-
control: (base, state) => ({
71+
control: (_, state) => ({
7272
...(!state.isFocused && {
7373
'&:not(:hover)': {
7474
backgroundColor: 'transparent',
75-
border: 'none',
75+
borderColor: 'transparent',
7676
gap: '2px',
7777
},
7878
}),
7979
...(state.menuIsOpen && {
8080
width: '250px',
8181
}),
8282
}),
83-
singleValue: (base, state) => ({
83+
singleValue: (_, state) => ({
8484
...(!state.selectProps.isFocussed && {
8585
'&:not(:hover)': {
8686
fontWeight: 600,

0 commit comments

Comments
 (0)