Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[system] Introduce visuallyHidden style utility #21413

Merged
merged 39 commits into from
Jun 16, 2020
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c953f9e
init
mnajdova Jun 13, 2020
4e9c6b8
proptypes + prettier
mnajdova Jun 13, 2020
dfcc14d
docs:api
mnajdova Jun 13, 2020
3cec1e1
fixed test
mnajdova Jun 13, 2020
829b793
renamed examples names
mnajdova Jun 13, 2020
fcae609
Update packages/material-ui-lab/src/VisuallyHidden/VisuallyHidden.js
mnajdova Jun 13, 2020
c7c7170
Update packages/material-ui-lab/src/VisuallyHidden/VisuallyHidden.js
mnajdova Jun 13, 2020
4cccf65
Update packages/material-ui-lab/src/VisuallyHidden/VisuallyHidden.js
mnajdova Jun 13, 2020
f8ab6bd
comments
mnajdova Jun 13, 2020
ce4cd15
Update docs/src/pages/components/visually-hidden/visually-hidden.md
mnajdova Jun 13, 2020
4348541
description
mnajdova Jun 13, 2020
070f2d9
Merge branch 'fat/visually-hidden' of https://github.com/mnajdova/mat…
mnajdova Jun 13, 2020
ac287b7
merge
mnajdova Jun 13, 2020
e095fe5
renamed className for visualHidden in Rating
mnajdova Jun 13, 2020
393c245
removed component, added styles util
mnajdova Jun 13, 2020
592b451
removed srOnly from Typography
mnajdova Jun 13, 2020
6abfaf3
polishing
mnajdova Jun 13, 2020
d57387c
better description
mnajdova Jun 13, 2020
7ef59e2
removed export
mnajdova Jun 13, 2020
299292b
prettier
mnajdova Jun 13, 2020
4c2256a
Update packages/material-ui-system/src/index.d.ts
mnajdova Jun 13, 2020
1d3d245
reverted translation pages
mnajdova Jun 13, 2020
6d084a5
removed component page
mnajdova Jun 13, 2020
d919b9b
removed styles as dependency
mnajdova Jun 14, 2020
e33085c
added cast
mnajdova Jun 14, 2020
236450b
ts formatted
mnajdova Jun 14, 2020
e50d107
ts fixes
mnajdova Jun 14, 2020
aa96cc6
Merge branch 'next' into fat/visually-hidden
mnajdova Jun 14, 2020
1ecd2e9
updated migration guide
mnajdova Jun 14, 2020
b0d1158
styled components
mnajdova Jun 14, 2020
54a1c6d
renamed page to screen readers
mnajdova Jun 14, 2020
ea9ba89
reverted styled components usage
mnajdova Jun 14, 2020
2fa6d93
added htmlFor and id
mnajdova Jun 14, 2020
085286f
added comment for fixing ts issue
mnajdova Jun 14, 2020
1cd1658
simplified example
mnajdova Jun 14, 2020
9de377c
Used Link component
mnajdova Jun 14, 2020
ddfbf4e
typo
mnajdova Jun 14, 2020
0dd8163
prettier
mnajdova Jun 14, 2020
8807efc
Update docs/src/pages/guides/migration-v4/migration-v4.md
oliviertassinari Jun 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/pages/api-docs/rating.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Any other props supplied will be provided to the root element (native element).
| <span class="prop-name">readOnly</span> | <span class="prop-name">.MuiRating-readOnly</span> | Styles applied to the root element if `readOnly={true}`.
| <span class="prop-name">disabled</span> | <span class="prop-name">.Mui-disabled</span> | Pseudo-class applied to the root element if `disabled={true}`.
| <span class="prop-name">focusVisible</span> | <span class="prop-name">.Mui-focusVisible</span> | Pseudo-class applied to the root element if keyboard focused.
| <span class="prop-name">visuallyhidden</span> | <span class="prop-name">.MuiRating-visuallyhidden</span> | Visually hide an element.
| <span class="prop-name">visuallyHidden</span> | <span class="prop-name">.MuiRating-visuallyHidden</span> | Visually hide an element.
| <span class="prop-name">pristine</span> | <span class="prop-name">.MuiRating-pristine</span> | Styles applied to the pristine label.
| <span class="prop-name">label</span> | <span class="prop-name">.MuiRating-label</span> | Styles applied to the label elements.
| <span class="prop-name">icon</span> | <span class="prop-name">.MuiRating-icon</span> | Styles applied to the icon wrapping elements.
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/api-docs/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The `MuiTypography` name can be used for providing [default props](/customizatio
| <span class="prop-name">gutterBottom</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the text will have a bottom margin. |
| <span class="prop-name">noWrap</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.<br>Note that text overflow can only happen with block or inline-block level elements (the element needs to have a width in order to overflow). |
| <span class="prop-name">paragraph</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true`, the text will have a bottom margin. |
| <span class="prop-name">variant</span> | <span class="prop-type">'h1'<br>&#124;&nbsp;'h2'<br>&#124;&nbsp;'h3'<br>&#124;&nbsp;'h4'<br>&#124;&nbsp;'h5'<br>&#124;&nbsp;'h6'<br>&#124;&nbsp;'subtitle1'<br>&#124;&nbsp;'subtitle2'<br>&#124;&nbsp;'body1'<br>&#124;&nbsp;'body2'<br>&#124;&nbsp;'caption'<br>&#124;&nbsp;'button'<br>&#124;&nbsp;'overline'<br>&#124;&nbsp;'srOnly'<br>&#124;&nbsp;'inherit'</span> | <span class="prop-default">'body1'</span> | Applies the theme typography styles. |
| <span class="prop-name">variant</span> | <span class="prop-type">'h1'<br>&#124;&nbsp;'h2'<br>&#124;&nbsp;'h3'<br>&#124;&nbsp;'h4'<br>&#124;&nbsp;'h5'<br>&#124;&nbsp;'h6'<br>&#124;&nbsp;'subtitle1'<br>&#124;&nbsp;'subtitle2'<br>&#124;&nbsp;'body1'<br>&#124;&nbsp;'body2'<br>&#124;&nbsp;'caption'<br>&#124;&nbsp;'button'<br>&#124;&nbsp;'overline'<br>&#124;&nbsp;'inherit'</span> | <span class="prop-default">'body1'</span> | Applies the theme typography styles. |
| <span class="prop-name">variantMapping</span> | <span class="prop-type">object</span> | <span class="prop-default">{ h1: 'h1', h2: 'h2', h3: 'h3', h4: 'h4', h5: 'h5', h6: 'h6', subtitle1: 'h6', subtitle2: 'h6', body1: 'p', body2: 'p',}</span> | The component maps the variant prop to a range of different HTML element types. For instance, subtitle1 to `<h6>`. If you wish to change that mapping, you can provide your own. Alternatively, you can use the `component` prop. |

The `ref` is forwarded to the root element.
Expand All @@ -62,7 +62,6 @@ Any other props supplied will be provided to the root element (native element).
| <span class="prop-name">subtitle1</span> | <span class="prop-name">.MuiTypography-subtitle1</span> | Styles applied to the root element if `variant="subtitle1"`.
| <span class="prop-name">subtitle2</span> | <span class="prop-name">.MuiTypography-subtitle2</span> | Styles applied to the root element if `variant="subtitle2"`.
| <span class="prop-name">overline</span> | <span class="prop-name">.MuiTypography-overline</span> | Styles applied to the root element if `variant="overline"`.
| <span class="prop-name">srOnly</span> | <span class="prop-name">.MuiTypography-srOnly</span> | Styles applied to the root element if `variant="srOnly"`. Only accessible to screen readers.
| <span class="prop-name">alignLeft</span> | <span class="prop-name">.MuiTypography-alignLeft</span> | Styles applied to the root element if `align="left"`.
| <span class="prop-name">alignCenter</span> | <span class="prop-name">.MuiTypography-alignCenter</span> | Styles applied to the root element if `align="center"`.
| <span class="prop-name">alignRight</span> | <span class="prop-name">.MuiTypography-alignRight</span> | Styles applied to the root element if `align="right"`.
Expand Down
24 changes: 24 additions & 0 deletions docs/pages/components/visually-hidden.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'components/visually-hidden';
const requireDemo = require.context(
'docs/src/pages/components/visually-hidden',
false,
/\.(js|tsx)$/,
);
const requireRaw = require.context(
'!raw-loader!../../src/pages/components/visually-hidden',
false,
/\.(js|md|tsx)$/,
);

export default function Page({ demos, docs }) {
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
20 changes: 20 additions & 0 deletions docs/pages/system/visually-hidden.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'system/visually-hidden';
const requireDemo = require.context('docs/src/pages/system/visually-hidden', false, /\.(js|tsx)$/);
const requireRaw = require.context(
'!raw-loader!../../src/pages/system/visually-hidden',
false,
/\.(js|md|tsx)$/,
);

export default function Page({ demos, docs }) {
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
1 change: 1 addition & 0 deletions docs/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const pages = [
{ pathname: '/system/sizing' },
{ pathname: '/system/spacing' },
{ pathname: '/system/typography' },
{ pathname: '/system/visually-hidden' },
{ pathname: '/system/api', title: 'API' },
],
},
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-de.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ Wenn Ihre Symbole eine semantische Bedeutung haben, müssen Sie eine Textalterna

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Erstellen Sie einen Benutzer</Typography>
<span className={classes.visuallyHidden}>Erstellen Sie einen Benutzer</span>
```

### Referenz
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-es.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ Si los iconos tienen significado semántico, se necesita proporcionar una altern

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Crear ususario</Typography>
<span className={classes.visuallyHidden}>Crear ususario</span>
```

### Referencia
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ Si vos icônes ont un sens sémantique, vous devez fournir une alternative textu

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Créez un utilisateur</Typography>
<span className={classes.visuallyHidden}>Créez un utilisateur</span>
```

### Référence
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ import SvgIcon from '@material-ui/core/SvgIcon';

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Create a user</Typography>
<span className={classes.visuallyHidden}>Create a user</span>
mnajdova marked this conversation as resolved.
Show resolved Hide resolved
```

### リファレンス
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ Se os seus ícones tiverem significado semântico, você precisará fornecer uma

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Crie um usuário</Typography>
<span className={classes.visuallyHidden}>Crie um usuário</span>
```

### Referência
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ If your icons are purely decorative, you’re already done! The `aria-hidden=tru

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Создать пользователя</Typography>
<span className={classes.visuallyHidden}>Создать пользователя</span>
```

### Справка
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ import SvgIcon from '@material-ui/core/SvgIcon';

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">创建一个用户</Typography>
<span className={classes.visuallyHidden}>创建一个用户</span>
```

### 参考
Expand Down
7 changes: 5 additions & 2 deletions docs/src/pages/components/icons/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,15 @@ If your icons have semantic meaning, you need to provide a text alternative only

```jsx
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';

const classes = makeStyles({ visuallyHidden })();

// ...

<Icon>add_circle</Icon>
<Typography variant="srOnly">Create a user</Typography>
<span className={classes.visuallyHidden}>Create a user</span>
```

### Reference
Expand Down
13 changes: 2 additions & 11 deletions docs/src/pages/components/tables/EnhancedTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
import Switch from '@material-ui/core/Switch';
import DeleteIcon from '@material-ui/icons/Delete';
import FilterListIcon from '@material-ui/icons/FilterList';
import { visuallyHidden } from '@material-ui/system';

function createData(name, calories, fat, carbs, protein) {
return { name, calories, fat, carbs, protein };
Expand Down Expand Up @@ -200,17 +201,7 @@ const useStyles = makeStyles((theme) => ({
table: {
minWidth: 750,
},
visuallyHidden: {
border: 0,
clip: 'rect(0 0 0 0)',
height: 1,
margin: -1,
overflow: 'hidden',
padding: 0,
position: 'absolute',
top: 20,
width: 1,
},
visuallyHidden,
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
}));

export default function EnhancedTable() {
Expand Down
13 changes: 2 additions & 11 deletions docs/src/pages/components/tables/EnhancedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
import Switch from '@material-ui/core/Switch';
import DeleteIcon from '@material-ui/icons/Delete';
import FilterListIcon from '@material-ui/icons/FilterList';
import { visuallyHidden } from '@material-ui/system';

interface Data {
calories: number;
Expand Down Expand Up @@ -227,17 +228,7 @@ const useStyles = makeStyles((theme: Theme) =>
table: {
minWidth: 750,
},
visuallyHidden: {
border: 0,
clip: 'rect(0 0 0 0)',
height: 1,
margin: -1,
overflow: 'hidden',
padding: 0,
position: 'absolute',
top: 20,
width: 1,
},
visuallyHidden,
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
}),
);

Expand Down
43 changes: 43 additions & 0 deletions docs/src/pages/system/visually-hidden/VisuallyHiddenUsage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';
import ThumbUpIcon from '@material-ui/icons/ThumbUp';
import EmojiEmotionsIcon from '@material-ui/icons/EmojiEmotions';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles((theme) => ({
root: {
border: 'none',
color: 'grey',
'& label': { marginRight: 10, cursor: 'pointer' }
},
selected: {
color: theme.palette.primary.main,
},
visuallyHidden,
}));

export default function VisuallyHiddenUsage() {
const classes = useStyles();
const [ selected, setSelected ] = React.useState('like');

return (
<fieldset className={classes.root}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added more realistic scenario where the visuallyHidden would be used

image

cc @eps1lon let me know what do you think about this example, although it may be too complicated now.. :\

Copy link
Member

@oliviertassinari oliviertassinari Jun 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the demo, I can't use the keyboard to navigate the option, not notice any focusable style. I'm also not sure about the complexity of the demo. https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html seems to have a few nice and simple use cases.

Copy link
Member Author

@mnajdova mnajdova Jun 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just add a simple example with an <a /> element? Would be nice if it the code is short and immediately shown below the example. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the link example, I can add another one for the date start and end example if you think this is not enough

image

<label className={selected === 'like' ? classes.selected : ''}>
<ThumbUpIcon onClick={() => setSelected('like')}/>
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="like" className={classes.visuallyHidden} checked={selected === 'like'} />
<label className={selected === 'smile' ? classes.selected : ''}>
<EmojiEmotionsIcon onClick={() => setSelected('smile')} />
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="smile" className={classes.visuallyHidden} checked={selected === 'smile'} />
<label className={selected === 'love' ? classes.selected : ''}>
<FavoriteIcon onClick={() => setSelected('love')} />
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="love" className={classes.visuallyHidden} checked={selected === 'love'} />
</fieldset>
);
}
43 changes: 43 additions & 0 deletions docs/src/pages/system/visually-hidden/VisuallyHiddenUsage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from 'react';
import { visuallyHidden } from '@material-ui/system';
import { makeStyles } from '@material-ui/core/styles';
import ThumbUpIcon from '@material-ui/icons/ThumbUp';
import EmojiEmotionsIcon from '@material-ui/icons/EmojiEmotions';
import FavoriteIcon from '@material-ui/icons/Favorite';

const useStyles = makeStyles((theme) => ({
root: {
border: 'none',
color: 'grey',
'& label': { marginRight: 10 }
},
selected: {
color: theme.palette.primary.main,
},
visuallyHidden,
}));

export default function VisuallyHiddenUsage() {
const classes = useStyles();
const [ selected, setSelected ] = React.useState('like');

return (
<fieldset className={classes.root}>
<label className={selected === 'like' ? classes.selected : ''}>
<ThumbUpIcon onClick={() => setSelected('like')}/>
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="like" className={classes.visuallyHidden} checked={selected === 'like'} />
<label className={selected === 'smile' ? classes.selected : ''}>
<EmojiEmotionsIcon onClick={() => setSelected('smile')} />
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="smile" className={classes.visuallyHidden} checked={selected === 'smile'} />
<label className={selected === 'love' ? classes.selected : ''}>
<FavoriteIcon onClick={() => setSelected('love')} />
<span className={classes.visuallyHidden}>Like</span>
</label>
<input type="radio" value="love" className={classes.visuallyHidden} checked={selected === 'love'} />
</fieldset>
);
}
9 changes: 9 additions & 0 deletions docs/src/pages/system/visually-hidden/visually-hidden.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Visually hidden elements

<p class="description">The visually hidden style utility provides a common mechanism for hidings elements visually, but making them available for the assistive technology.</p>

## Usage

The inputs and the icons in the example are accompined with text which is available only to the screen readers.

{{"demo": "pages/system/visually-hidden/VisuallyHiddenUsage.js"}}
2 changes: 0 additions & 2 deletions framer/Material-UI.framerfx/code/Typography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ interface Props {
| 'caption'
| 'button'
| 'overline'
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved
| 'srOnly'
| 'inherit';
label?: string;
width?: number;
Expand Down Expand Up @@ -93,7 +92,6 @@ addPropertyControls(Typography, {
'caption',
'button',
'overline',
'srOnly',
'inherit',
],
},
Expand Down
Loading