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/translations/api-docs/icon-button/icon-button.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"description": "If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape)."
18
18
},
19
19
"loading": {
20
-
"description": "If <code>true</code>, the loading indicator is visible and the button is disabled."
20
+
"description": "If <code>true</code>, the loading indicator is visible and the button is disabled. If <code>true \\| false</code>, the loading wrapper is always rendered before the children to prevent <a href=\"https://github.com/mui/material-ui/issues/27853\">Google Translation Crash</a>."
21
21
},
22
22
"loadingIndicator": {
23
23
"description": "Element placed before the children if the button is in loading state. The node should contain an element with <code>role="progressbar"</code> with an accessible name. By default, it renders a <code>CircularProgress</code> that is labeled by the button itself."
@@ -89,6 +89,10 @@
89
89
"description": "Styles applied to {{nodeName}}.",
90
90
"nodeName": "the loadingIndicator element"
91
91
},
92
+
"loadingWrapper": {
93
+
"description": "Styles applied to {{nodeName}}.",
94
+
"nodeName": "the loadingWrapper element"
95
+
},
92
96
"root": { "description": "Styles applied to the root element." },
93
97
"sizeLarge": {
94
98
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
* If `true`, the loading indicator is visible and the button is disabled.
52
-
* @default false
52
+
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
53
+
* @default null
53
54
*/
54
-
loading?: boolean;
55
+
loading?: boolean|null;
55
56
/**
56
57
* Element placed before the children if the button is in loading state.
57
58
* The node should contain an element with `role="progressbar"` with an accessible name.
* If `true`, the loading indicator is visible and the button is disabled.
310
-
* @default false
316
+
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
0 commit comments