Skip to content

Commit 7a5d5e9

Browse files
siriwatknpweb-flow
authored andcommitted
[docs-v5] Add AccordionSummary to the breaking change migration (#45947)
1 parent 8592108 commit 7a5d5e9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/data/material/migration/migration-v4/v5-component-changes.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ As the core components use Emotion as their style engine, the props used by Emot
3333
<MuiComponent component={SomeOtherComponent} as="button" />
3434
```
3535

36+
## AccordionSummary
37+
38+
### Rename `expandIcon` to `expandIconWrapper`
39+
40+
This change was made to make it clearer that the element is a wrapper around the icon, not the icon itself.
41+
42+
Update the CSS class name and the theme overrides accordingly.
43+
44+
```diff
45+
-'.MuiAccordionSummary-expandIcon': {
46+
+'.MuiAccordionSummary-expandIconWrapper': {
47+
```
48+
49+
```diff
50+
createTheme({
51+
components: {
52+
MuiAccordionSummary: {
53+
styleOverrides: {
54+
- expandIcon: {
55+
+ expandIconWrapper: {
56+
// ...
57+
},
58+
},
59+
},
60+
},
61+
});
62+
```
63+
3664
## AppBar
3765

3866
### Fix z-index issues

0 commit comments

Comments
 (0)