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:
@@ -1368,6 +1472,32 @@ The following deprecated props have been removed:
1368
1472
/>
1369
1473
```
1370
1474
1475
+
#### Modal deprecated props removed
1476
+
1477
+
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:
@@ -1434,6 +1564,30 @@ The following deprecated `Switch` props have been removed:
1434
1564
/>
1435
1565
```
1436
1566
1567
+
#### SwipeableDrawer deprecated props removed
1568
+
1569
+
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."
Copy file name to clipboardExpand all lines: docs/pages/material-ui/api/swipeable-drawer.json
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,6 @@
44
44
},
45
45
"default": "{}"
46
46
},
47
-
"SwipeAreaProps": {
48
-
"type": { "name": "object" },
49
-
"deprecated": true,
50
-
"deprecationInfo": "use the <code>slotProps.swipeArea</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."
Copy file name to clipboardExpand all lines: docs/translations/api-docs/dialog/dialog.json
-24Lines changed: 0 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,6 @@
6
6
"aria-modal": {
7
7
"description": "Informs assistive technologies that the element is modal. It's added on the element with role="dialog"."
8
8
},
9
-
"BackdropComponent": {
10
-
"description": "A backdrop component. This prop enables custom backdrop rendering."
11
-
},
12
9
"children": { "description": "Dialog children, usually the included sub-components." },
13
10
"classes": { "description": "Override or extend the styles applied to the component." },
14
11
"fullScreen": { "description": "If <code>true</code>, the dialog is full-screen." },
@@ -30,23 +27,14 @@
30
27
},
31
28
"open": { "description": "If <code>true</code>, the component is shown." },
32
29
"PaperComponent": { "description": "The component used to render the body of the dialog." },
33
-
"PaperProps": {
34
-
"description": "Props applied to the <a href=\"https://mui.com/material-ui/api/paper/\"><code>Paper</code></a> element."
35
-
},
36
30
"scroll": { "description": "Determine the container for scrolling the dialog." },
37
31
"slotProps": { "description": "The props used for each slot inside." },
38
32
"slots": { "description": "The components used for each slot inside." },
39
33
"sx": {
40
34
"description": "The system prop that allows defining system overrides as well as additional CSS styles."
41
35
},
42
-
"TransitionComponent": {
43
-
"description": "The component used for the transition. <a href=\"https://mui.com/material-ui/transitions/#transitioncomponent-prop\">Follow this guide</a> to learn more about the requirements for this component."
44
-
},
45
36
"transitionDuration": {
46
37
"description": "The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object."
47
-
},
48
-
"TransitionProps": {
49
-
"description": "Props applied to the transition element. By default, the element is based on this <a href=\"https://reactcommunity.org/react-transition-group/transition/\"><code>Transition</code></a> component."
50
38
}
51
39
},
52
40
"classDescriptions": {
@@ -60,18 +48,6 @@
60
48
"nodeName": "the Paper component",
61
49
"conditions": "<code>fullWidth={true}</code>"
62
50
},
63
-
"paperScrollBody": {
64
-
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
65
-
"nodeName": "the Paper component",
66
-
"conditions": "<code>scroll=\"body\"</code>",
67
-
"deprecationInfo": "Combine the <a href=\"/material-ui/api/dialog/#Dialog-css-MuiDialog-paper\">.MuiDialog-paper</a> and <a href=\"/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollBody\">.MuiDialog-scrollBody</a> classes instead. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
68
-
},
69
-
"paperScrollPaper": {
70
-
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
71
-
"nodeName": "the Paper component",
72
-
"conditions": "<code>scroll=\"paper\"</code>",
73
-
"deprecationInfo": "Combine the <a href=\"/material-ui/api/dialog/#Dialog-css-MuiDialog-paper\">.MuiDialog-paper</a> and <a href=\"/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollPaper\">.MuiDialog-scrollPaper</a> classes instead. See <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
74
-
},
75
51
"paperWidthFalse": {
76
52
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
0 commit comments