-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
♿Add alert role to toast for screen reader support #24825
Conversation
Hey @newmuis, these files were changed:
|
I've got a few questions I want to answer before I'd be satisfied calling this ready to merge. First, how should I test this? I ran the Second, I chose Context: Toast roles, |
This pull request introduces 1 alert when merging 94c6694 into 8370cee - view on LGTM.com new alerts:
|
Hey @newmuis, these files were changed:
|
I am by no means an expert, but I think we might want to consider The code change LGTM, just wondering about the role itself. |
The guidelines for this pretty much allow you to choose which makes more sense in the context. If the toast content is the content we want to call attention to immediately, then |
Hey @newmuis, these files were changed:
|
Update: I tried this with a the macOS VoiceOver screen reader and it seems to be working well |
Adds the
alert
role to toasts so screen readers assertively announce the content when the toast is displayed.Resolves #24805