mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-14 00:05:07 +00:00
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
// ** MUI Imports
|
|
import { Theme } from '@mui/material/styles'
|
|
|
|
const Accordion = (theme: Theme) => {
|
|
return {
|
|
MuiAccordion: {
|
|
styleOverrides: {
|
|
root: {
|
|
'&.Mui-disabled': {
|
|
backgroundColor: `rgba(${theme.palette.customColors.main}, 0.12)`
|
|
},
|
|
'&.Mui-expanded': {
|
|
boxShadow: theme.shadows[3]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
MuiAccordionSummary: {
|
|
styleOverrides: {
|
|
root: {
|
|
padding: `0 ${theme.spacing(5)}`,
|
|
'& + .MuiCollapse-root': {
|
|
'& .MuiAccordionDetails-root:first-child': {
|
|
paddingTop: 0
|
|
}
|
|
}
|
|
},
|
|
content: {
|
|
margin: `${theme.spacing(2.5)} 0`
|
|
},
|
|
expandIconWrapper: {
|
|
color: theme.palette.text.secondary
|
|
}
|
|
}
|
|
},
|
|
MuiAccordionDetails: {
|
|
styleOverrides: {
|
|
root: {
|
|
padding: theme.spacing(5),
|
|
'& + .MuiAccordionDetails-root': {
|
|
paddingTop: 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
export default Accordion
|