Refactored sx styling to theme file style overrides

This commit is contained in:
Daniel Cojocea committed 2024-08-29 20:42:12 -04:00
1 parent bddca58a37
commit 4352b3690d
12 files changed
+90 -101

No files matched your search

@@ -5,8 +5,3 @@
align-items: center;
line-height: 1;
}
.select-wrapper .MuiInputBase-root:has(> .MuiSelect-select),
.MuiMenu-List .MuiMenuItem-root,
.select-wrapper h3.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
}
+1 -18
View File
@@ -77,26 +77,9 @@ const Select = ({
onChange={onChange}
displayEmpty
inputProps={{ id: id }}
MenuProps={{
MenuListProps: {
sx: {
p: 0,
"& li": {
color: theme.palette.text.secondary,
fontSize: 13,
px: theme.spacing(4),
py: theme.spacing(2.5),
borderRadius: theme.shape.borderRadius,
},
"& li.Mui-selected, & li.Mui-selected.Mui-focusVisible, & li.Mui-selected:hover":
{
backgroundColor: theme.palette.background.fill,
},
},
},
}}
IconComponent={KeyboardArrowDownIcon}
sx={{
fontSize: 13,
minWidth: "125px",
"& fieldset": {
borderRadius: theme.shape.borderRadius,