You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md
+154Lines changed: 154 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -894,6 +894,110 @@ If you were using these deprecated class names as `styleOverrides` keys in your
894
894
});
895
895
```
896
896
897
+
#### Dialog deprecated CSS classes removed
898
+
899
+
Use the [dialog-classes codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#dialog-classes) below to migrate the code as described in the following section:
The following deprecated `Dialog` CSS classes have been removed:
906
+
907
+
-`paperScrollPaper` → use `.MuiDialog-scrollPaper > .MuiDialog-paper`
908
+
-`paperScrollBody` → use `.MuiDialog-scrollBody > .MuiDialog-paper`
909
+
910
+
If you were using these classes in `styleOverrides`, use the `variants` array in the `paper` slot instead:
911
+
912
+
```diff
913
+
const theme = createTheme({
914
+
components: {
915
+
MuiDialog: {
916
+
styleOverrides: {
917
+
- paperScrollPaper: {
918
+
- maxHeight: '80vh',
919
+
- },
920
+
- paperScrollBody: {
921
+
- verticalAlign: 'bottom',
922
+
- },
923
+
+ paper: {
924
+
+ variants: [
925
+
+ {
926
+
+ props: { scroll: 'paper' },
927
+
+ style: {
928
+
+ maxHeight: '80vh',
929
+
+ },
930
+
+ },
931
+
+ {
932
+
+ props: { scroll: 'body' },
933
+
+ style: {
934
+
+ verticalAlign: 'bottom',
935
+
+ },
936
+
+ },
937
+
+ ],
938
+
+ },
939
+
},
940
+
},
941
+
},
942
+
});
943
+
```
944
+
945
+
#### Dialog deprecated props removed
946
+
947
+
Use the [dialog-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#dialog-props) below to migrate the code as described in the following section:
Use the [drawer-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#drawer-props) below to migrate the code as described in the following section:
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#divider-props) below to migrate the code as described in the following sections:
@@ -1423,6 +1527,32 @@ The following deprecated props have been removed:
1423
1527
/>
1424
1528
```
1425
1529
1530
+
#### Modal deprecated props removed
1531
+
1532
+
Use the [modal-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#modal-props) below to migrate the code as described in the following section:
@@ -1489,6 +1619,30 @@ The following deprecated `Switch` props have been removed:
1489
1619
/>
1490
1620
```
1491
1621
1622
+
#### SwipeableDrawer deprecated props removed
1623
+
1624
+
Use the [drawer-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#drawer-props) below to migrate the code as described in the following section:
Use the [tabs-props codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#tabs-props) below to migrate the code as described in the following section:
"deprecationInfo": "Use <code>slotProps.paper</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
"deprecationInfo": "Use <code>slots.transition</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
74
-
},
75
57
"transitionDuration": {
76
58
"type": {
77
59
"name": "union",
78
60
"description": "number<br>| { appear?: number, enter?: number, exit?: number }"
"deprecationInfo": "Use <code>slotProps.transition</code> instead. This prop will be removed in a future major release. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
86
63
}
87
64
},
88
65
"name": "Dialog",
@@ -132,20 +109,6 @@
132
109
"description": "Styles applied to the Paper component if `fullWidth={true}`.",
133
110
"isGlobal": false
134
111
},
135
-
{
136
-
"key": "paperScrollBody",
137
-
"className": "MuiDialog-paperScrollBody",
138
-
"description": "Styles applied to the Paper component if `scroll=\"body\"`.",
139
-
"isGlobal": false,
140
-
"isDeprecated": true
141
-
},
142
-
{
143
-
"key": "paperScrollPaper",
144
-
"className": "MuiDialog-paperScrollPaper",
145
-
"description": "Styles applied to the Paper component if `scroll=\"paper\"`.",
"deprecationInfo": "use the <code>slotProps.paper</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
28
-
},
29
-
"SlideProps": {
30
-
"type": { "name": "object" },
31
-
"deprecated": true,
32
-
"deprecationInfo": "use the <code>slotProps.transition</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
"deprecationInfo": "Use the <code>slots</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
"deprecationInfo": "Use the <code>slotProps</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
0 commit comments