Skip to content

Commit 1e23d8b

Browse files
committed
UGN-371 bugfix - fix validation step select margins/paddings.
1 parent 55f0df7 commit 1e23d8b

File tree

2 files changed

+5
-34
lines changed

2 files changed

+5
-34
lines changed

src/components/Selects/TableSelect.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const TableSelect = ({ onChange, value, options }: Props) => {
1717
return (
1818
<Select<SelectOption, false>
1919
autoFocus
20+
useBasicStyles
2021
size="sm"
2122
value={value}
2223
onChange={onChange}

src/theme.ts

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -288,49 +288,19 @@ export const themeOverrides = {
288288
fontSize: "3xl",
289289
},
290290
select: {
291-
dropdownIndicator: (provided) => ({
292-
...provided,
293-
background: "none",
294-
border: "none",
295-
p: 0,
296-
w: "40px",
297-
}),
298-
control: (provided) => ({
299-
...provided,
300-
background: "none",
301-
border: "none",
302-
p: 0,
303-
_focus: undefined,
304-
}),
305-
input: (provided) => ({
306-
...provided,
307-
background: "none",
308-
border: "none",
309-
p: 0,
310-
}),
311-
indicatorSeparator: (provided) => ({
312-
...provided,
313-
opacity: 0,
314-
}),
315-
singleValue: (provided) => ({
316-
...provided,
317-
marginInlineStart: 0,
318-
}),
319291
valueContainer: (provided) => ({
320292
...provided,
321-
p: 0,
322-
paddingInlineStart: 2,
293+
py: 0,
294+
px: 1.5,
323295
color: "gray.400",
324296
}),
297+
inputContainer: (provided) => ({ ...provided, py: 0 }),
298+
control: (provided) => ({ ...provided, border: "none" }),
325299
menu: (provided) => ({
326300
...provided,
327301
p: 0,
328302
mt: 0,
329303
}),
330-
menuList: (provided) => ({
331-
...provided,
332-
minW: "initial",
333-
}),
334304
option: (provided, state) => ({
335305
...provided,
336306
color: state.isSelected ? "gray.900" : provided.color,

0 commit comments

Comments
 (0)