Skip to content

Commit

Permalink
fix: select overflow (#835)
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Lan Phan Hoang <pyphilia@gmail.com>
  • Loading branch information
spaenleh and pyphilia committed Apr 30, 2024
1 parent 06e953c commit 98bbe34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Select = <T extends string | number | readonly string[] | undefined>({
const showLabel = Boolean(labelId ?? label);
return (
<FormControl
sx={{ mt: label ? 1 : 0, backgroundColor: 'white' }}
sx={{ mt: label ? 1 : 0 }}
size={size}
data-testid='select-test-id'
disabled={disabled || values.every(({ disabled }) => disabled)}
Expand Down
1 change: 1 addition & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const createGraaspTheme = ({
MuiSelect: {
styleOverrides: {
root: {
overflow: 'hidden',
backgroundColor: 'white',
},
},
Expand Down

0 comments on commit 98bbe34

Please sign in to comment.