Skip to content

Commit 6fb6a9b

Browse files
[docs] Improve description of Accordion props (#47459)
1 parent af8335b commit 6fb6a9b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/translations/api-docs/accordion/accordion.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"defaultExpanded": { "description": "If <code>true</code>, expands the accordion by default." },
77
"disabled": { "description": "If <code>true</code>, the component is disabled." },
88
"disableGutters": {
9-
"description": "If <code>true</code>, it removes the margin between two expanded accordion items and the increase of height."
9+
"description": "If <code>true</code>, it removes the margin between two expanded accordion items and prevents the increased height when expanded."
1010
},
1111
"expanded": {
12-
"description": "If <code>true</code>, expands the accordion, otherwise collapse it. Setting this prop enables control over the accordion."
12+
"description": "If <code>true</code>, expands the accordion, otherwise collapses it. Setting this prop enables control over the accordion."
1313
},
1414
"onChange": {
1515
"description": "Callback fired when the expand/collapse state is changed.",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ export interface AccordionOwnProps {
9090
*/
9191
disabled?: boolean;
9292
/**
93-
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
93+
* If `true`, it removes the margin between two expanded accordion items and prevents the increased height when expanded.
9494
* @default false
9595
*/
9696
disableGutters?: boolean;
9797
/**
98-
* If `true`, expands the accordion, otherwise collapse it.
98+
* If `true`, expands the accordion, otherwise collapses it.
9999
* Setting this prop enables control over the accordion.
100100
*/
101101
expanded?: boolean;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ Accordion.propTypes /* remove-proptypes */ = {
292292
*/
293293
disabled: PropTypes.bool,
294294
/**
295-
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
295+
* If `true`, it removes the margin between two expanded accordion items and prevents the increased height when expanded.
296296
* @default false
297297
*/
298298
disableGutters: PropTypes.bool,
299299
/**
300-
* If `true`, expands the accordion, otherwise collapse it.
300+
* If `true`, expands the accordion, otherwise collapses it.
301301
* Setting this prop enables control over the accordion.
302302
*/
303303
expanded: PropTypes.bool,

0 commit comments

Comments
 (0)