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

a11y alerts #1187

Open
philli-m opened this issue Aug 16, 2022 · 0 comments
Open

a11y alerts #1187

philli-m opened this issue Aug 16, 2022 · 0 comments

Comments

@philli-m
Copy link
Contributor

philli-m commented Aug 16, 2022

We should not use role="alert" for success messages, we should use instead aria-live="polite" only aria-live="assertive" or the equivalent role="alert" should be used for errors

<div className={`alert alert--${type}`} role="alert">

ref
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant