Skip to content

Commit b567e79

Browse files
committed
polish details
1 parent 35417d9 commit b567e79

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The Accordion's `TransitionProps` was deprecated in favor of `slotProps.transiti
5757
The Divider's `light` prop was deprecated, Use `sx={{ opacity : "0.6" }}` (or any opacity). ([Codemod](https://github.com/mui/material-ui/tree/master/packages/mui-codemod#divider-props)):
5858

5959
```diff
60-
<Accordion
60+
<Divider
6161
- light
6262
+ sx={{ opacity : "0.6" }}
6363
/>

docs/pages/material-ui/api/divider.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": { "name": "bool" },
1010
"default": "false",
1111
"deprecated": true,
12-
"deprecationInfo": "Use &lt;Divider sx={{ bgcolor: &#39;#eee&#39; }} /&gt; (or any color) instead. <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">How to migrate</a>"
12+
"deprecationInfo": "Use &lt;Divider sx={{ opacity: 0.6 }} /&gt; (or any opacity or color) instead. <a href=\"/material-ui/migration/migrating-from-deprecated-apis/\">How to migrate</a>"
1313
},
1414
"orientation": {
1515
"type": { "name": "enum", "description": "'horizontal'<br>&#124;&nbsp;'vertical'" },

packages/mui-material/src/Divider/Divider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface DividerOwnProps {
3030
/**
3131
* If `true`, the divider will have a lighter color.
3232
* @default false
33-
* @deprecated Use <Divider sx={{ bgcolor: '#eee' }} /> (or any color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
33+
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
3434
*/
3535
light?: boolean;
3636
/**

packages/mui-material/src/Divider/Divider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Divider.propTypes /* remove-proptypes */ = {
257257
/**
258258
* If `true`, the divider will have a lighter color.
259259
* @default false
260-
* @deprecated Use <Divider sx={{ bgcolor: '#eee' }} /> (or any color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
260+
* @deprecated Use <Divider sx={{ opacity: 0.6 }} /> (or any opacity or color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
261261
*/
262262
light: PropTypes.bool,
263263
/**

0 commit comments

Comments
 (0)