Skip to content

Commit

Permalink
Update docs/src/pages/components/snackbars/snackbars.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Matt <[email protected]>
  • Loading branch information
oliviertassinari and mbrookes authored Dec 29, 2019
1 parent 45c7d1a commit 5ce86c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/components/snackbars/snackbars.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ It also enables you to **stack** them on top of one another (although this is di
(WAI-ARIA: https://www.w3.org/TR/wai-aria-1.1/#alert)

- By default, the toast won't auto-hide. However, if you decide to use the `autoHideDuration` prop, it's recommended giving users [enough time](https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits.html).
- Since alerts are not required to receive focus, content authors should not require users to close a Snackbar if the role is set to `alert="role"` through the SnackbarContent. This is the default role.
- Since alerts are not required to receive focus, content authors should not require users to close a Snackbar if the role is set to `role="alert"` through the SnackbarContent. This is the default role.
- If a Snackbar requires focus to close it, then content authors should use `role= "alertdialog"`.

```jsx
Expand Down

0 comments on commit 5ce86c4

Please sign in to comment.