Skip to content

Commit

Permalink
Revert removal of legacy classes descriptions
Browse files Browse the repository at this point in the history
Will be done in a follow-up
  • Loading branch information
eps1lon committed May 11, 2021
1 parent 535acd2 commit 294d3e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/material-ui/src/Accordion/Accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const AccordionRoot = experimentalStyled(
};

return {
/* Styles applied to the root element. */
position: 'relative',
transition: theme.transitions.create(['margin'], transition),
overflowAnchor: 'none', // Keep the same scrolling position
Expand All @@ -72,6 +73,7 @@ const AccordionRoot = experimentalStyled(
display: 'none',
},
},
/* Styles applied to the root element if `expanded={true}`. */
[`&.${accordionClasses.expanded}`]: {
'&:before': {
opacity: 0,
Expand All @@ -88,12 +90,14 @@ const AccordionRoot = experimentalStyled(
},
},
},
/* Styles applied to the root element if `disabled={true}`. */
[`&.${accordionClasses.disabled}`]: {
backgroundColor: theme.palette.action.disabledBackground,
},
};
},
({ theme, styleProps }) => ({
/* Styles applied to the root element unless `square={true}`. */
...(!styleProps.square && {
borderRadius: 0,
'&:first-of-type': {
Expand All @@ -110,6 +114,7 @@ const AccordionRoot = experimentalStyled(
},
},
}),
/* Styles applied to the root element unless `disableGutters={true}`. */
...(!styleProps.disableGutters && {
[`&.${accordionClasses.expanded}`]: {
margin: '16px 0',
Expand Down

0 comments on commit 294d3e0

Please sign in to comment.