Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 91x | import { alpha } from '@mui/material/styles';
import { svgIconClasses } from '@mui/material/SvgIcon';
import { autocompleteClasses } from '@mui/material/Autocomplete';
import { paper, menuItem } from '../../css';
// ----------------------------------------------------------------------
export function autocomplete(theme) {
return {
MuiAutocomplete: {
styleOverrides: {
root: {
[`& span.${autocompleteClasses.tag}`]: {
...theme.typography.subtitle2,
height: 24,
minWidth: 24,
lineHeight: '24px',
textAlign: 'center',
padding: theme.spacing(0, 0.75),
color: theme.palette.text.secondary,
borderRadius: theme.shape.borderRadius,
backgroundColor: alpha(theme.palette.grey[500], 0.16),
},
},
paper: {
...paper({ theme, dropdown: true }),
},
listbox: {
padding: 0,
[`& .${autocompleteClasses.option}`]: {
...menuItem(theme),
},
},
endAdornment: {
[`& .${svgIconClasses.root}`]: {
width: 18,
height: 18,
},
},
},
},
};
}
|