Rename ExpansionPanel components to Accordion (#1727) (#1740)

This commit is contained in:
Michał Droń 2022-01-11 09:05:45 +01:00 committed by GitHub
parent 4c53dd0792
commit 3bb7209db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ const useStyles = makeStyles(
width: 8 width: 8
}, },
panel: { panel: {
"& .MuiExpansionPanelDetails-root": { "& .MuiAccordionDetails-root": {
padding: 0, padding: 0,
paddingTop: theme.spacing(2) paddingTop: theme.spacing(2)
}, },
@ -40,13 +40,13 @@ const useStyles = makeStyles(
width: "100%" width: "100%"
}, },
panelExpander: { panelExpander: {
"&.MuiExpansionPanelSummary-root.Mui-expanded": { "&.MuiAccordionSummary-root.Mui-expanded": {
minHeight: 0 minHeight: 0
}, },
"&> .MuiExpansionPanelSummary-content": { "&> .MuiAccordionSummary-content": {
margin: 0 margin: 0
}, },
"&> .MuiExpansionPanelSummary-expandIcon": { "&> .MuiAccordionSummary-expandIcon": {
padding: 0, padding: 0,
position: "absolute", position: "absolute",
right: theme.spacing(20) right: theme.spacing(20)