diff --git a/client/src/Components/Inputs/Search/index.jsx b/client/src/Components/Inputs/Search/index.jsx index 86ce57779..e5654faeb 100644 --- a/client/src/Components/Inputs/Search/index.jsx +++ b/client/src/Components/Inputs/Search/index.jsx @@ -102,27 +102,7 @@ const Search = ({ ...(endAdornment && { endAdornment: endAdornment }), }, }} - 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 - }, - }} + sx={{}} /> {error && ( ({ }, }, }, + + 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: { styleOverrides: { root: ({ theme }) => ({