Merge pull request #2447 from bluewave-labs/fix/autocomplete-style
fix: move style to global theme
This commit is contained in:
2 files changed
+28
-21
No files matched your search
@@ -102,27 +102,7 @@ const Search = ({
|
|||||||
...(endAdornment && { endAdornment: endAdornment }),
|
...(endAdornment && { endAdornment: endAdornment }),
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
sx={{
|
sx={{}}
|
||||||
"& fieldset": {
|
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
|
||||||
borderRadius: theme.shape.borderRadius,
|
|
||||||
},
|
|
||||||
"& .MuiOutlinedInput-root:hover:not(:has(input:focus)):not(:has(textarea:focus)) fieldset":
|
|
||||||
{
|
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
|
||||||
},
|
|
||||||
"& .MuiOutlinedInput-root": {
|
|
||||||
paddingY: 0,
|
|
||||||
},
|
|
||||||
"& .MuiAutocomplete-tag": {
|
|
||||||
// CAIO_REVIEW
|
|
||||||
color: theme.palette.primary.contrastText,
|
|
||||||
backgroundColor: theme.palette.primary.lowContrast,
|
|
||||||
},
|
|
||||||
"& .MuiChip-deleteIcon": {
|
|
||||||
color: theme.palette.primary.contrastText, // CAIO_REVIEW
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
{error && (
|
{error && (
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -380,6 +380,33 @@ const baseTheme = (palette) => ({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
MuiAutocomplete: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: ({ theme }) => ({
|
||||||
|
"& .MuiOutlinedInput-root": {
|
||||||
|
paddingTop: 0,
|
||||||
|
paddingBottom: 0,
|
||||||
|
},
|
||||||
|
"& fieldset": {
|
||||||
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
|
borderRadius: theme.shape.borderRadius,
|
||||||
|
},
|
||||||
|
"& .MuiOutlinedInput-root:hover:not(:has(input:focus)):not(:has(textarea:focus)) fieldset":
|
||||||
|
{
|
||||||
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
|
},
|
||||||
|
|
||||||
|
"& .MuiAutocomplete-tag": {
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
backgroundColor: theme.palette.primary.lowContrast,
|
||||||
|
},
|
||||||
|
"& .MuiChip-deleteIcon": {
|
||||||
|
color: theme.palette.primary.contrastText, // CAIO_REVIEW
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiTab: {
|
MuiTab: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
|
|||||||
Reference in new issue
Block a user