main
Last change
on this file was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago |
add customer
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[5d6f37a] | 1 | import { Theme } from '@mui/material/styles';
|
---|
| 2 | import { typographyClasses } from '@mui/material/Typography';
|
---|
| 3 | import { accordionClasses } from '@mui/material/Accordion';
|
---|
| 4 | import { accordionSummaryClasses } from '@mui/material/AccordionSummary';
|
---|
| 5 |
|
---|
| 6 | // ----------------------------------------------------------------------
|
---|
| 7 |
|
---|
| 8 | export function accordion(theme: Theme) {
|
---|
| 9 | return {
|
---|
| 10 | MuiAccordion: {
|
---|
| 11 | styleOverrides: {
|
---|
| 12 | root: {
|
---|
| 13 | backgroundColor: 'transparent',
|
---|
| 14 | [`&.${accordionClasses.expanded}`]: {
|
---|
| 15 | boxShadow: theme.customShadows.z8,
|
---|
| 16 | borderRadius: theme.shape.borderRadius,
|
---|
| 17 | backgroundColor: theme.palette.background.paper,
|
---|
| 18 | },
|
---|
| 19 | [`&.${accordionClasses.disabled}`]: {
|
---|
| 20 | backgroundColor: 'transparent',
|
---|
| 21 | },
|
---|
| 22 | },
|
---|
| 23 | },
|
---|
| 24 | },
|
---|
| 25 | MuiAccordionSummary: {
|
---|
| 26 | styleOverrides: {
|
---|
| 27 | root: {
|
---|
| 28 | paddingLeft: theme.spacing(2),
|
---|
| 29 | paddingRight: theme.spacing(1),
|
---|
| 30 | [`&.${accordionSummaryClasses.disabled}`]: {
|
---|
| 31 | opacity: 1,
|
---|
| 32 | color: theme.palette.action.disabled,
|
---|
| 33 | [`& .${typographyClasses.root}`]: {
|
---|
| 34 | color: 'inherit',
|
---|
| 35 | },
|
---|
| 36 | },
|
---|
| 37 | },
|
---|
| 38 | expandIconWrapper: {
|
---|
| 39 | color: 'inherit',
|
---|
| 40 | },
|
---|
| 41 | },
|
---|
| 42 | },
|
---|
| 43 | };
|
---|
| 44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.