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 { accordionClasses } from '@mui/material/Accordion';
import { typographyClasses } from '@mui/material/Typography';
import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
// ----------------------------------------------------------------------
export function accordion(theme) {
return {
MuiAccordion: {
styleOverrides: {
root: {
backgroundColor: 'transparent',
[`&.${accordionClasses.expanded}`]: {
boxShadow: theme.customShadows.z8,
borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.background.paper,
},
[`&.${accordionClasses.disabled}`]: {
backgroundColor: 'transparent',
},
},
},
},
MuiAccordionSummary: {
styleOverrides: {
root: {
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(1),
[`&.${accordionSummaryClasses.disabled}`]: {
opacity: 1,
color: theme.palette.action.disabled,
[`& .${typographyClasses.root}`]: {
color: 'inherit',
},
},
},
expandIconWrapper: {
color: 'inherit',
},
},
},
};
}
|