Skip to content

Commit d496a09

Browse files
keep listing 'round' in the variant API
1 parent 350c2a4 commit d496a09

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/pages/api-docs/fab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `MuiFab` name can be used for providing [default props](/customization/globa
3737
| <span class="prop-name">disableRipple</span> | <span class="prop-type">bool</span> | | If `true`, the ripple effect will be disabled. |
3838
| <span class="prop-name">href</span> | <span class="prop-type">string</span> | | The URL to link to when the button is clicked. If defined, an `a` element will be used as the root node. |
3939
| <span class="prop-name">size</span> | <span class="prop-type">'large'<br>&#124;&nbsp;'medium'<br>&#124;&nbsp;'small'</span> | <span class="prop-default">'large'</span> | The size of the button. `small` is equivalent to the dense button styling. |
40-
| <span class="prop-name">variant</span> | <span class="prop-type">'extended'<br>&#124;&nbsp;'circular'</span> | <span class="prop-default">'circular'</span> | The variant to use. |
40+
| <span class="prop-name">variant</span> | <span class="prop-type">'extended'<br>&#124;&nbsp;'circular'<br>&#124;&nbsp;'round'</span> | <span class="prop-default">'circular'</span> | The variant to use. 'round' is deprecated, use 'circular' instead. |
4141

4242
The `ref` is forwarded to the root element.
4343

packages/material-ui/src/Fab/Fab.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ export type FabTypeMap<P = {}, D extends React.ElementType = 'button'> = ExtendB
3636
size?: 'small' | 'medium' | 'large';
3737
/**
3838
* The variant to use.
39+
* 'round' is deprecated, use 'circular' instead.
3940
*/
40-
variant?: 'circular' | 'extended';
41+
variant?: 'circular' | 'extended' | 'round';
4142
};
4243
defaultComponent: D;
4344
classKey: FabClassKey;

packages/material-ui/src/Fab/Fab.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@ Fab.propTypes = {
216216
size: PropTypes.oneOf(['large', 'medium', 'small']),
217217
/**
218218
* The variant to use.
219+
* 'round' is deprecated, use 'circular' instead.
219220
*/
220-
variant: chainPropTypes(PropTypes.oneOf(['extended', 'circular']), (props) => {
221+
variant: chainPropTypes(PropTypes.oneOf(['extended', 'circular', 'round']), (props) => {
221222
if (props.variant === 'round') {
222223
throw new Error(
223224
'Material-UI: variant="round" was renamed variant="circular" for consistency.',

0 commit comments

Comments
 (0)