-
Notifications
You must be signed in to change notification settings - Fork 842
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] EuiScreenReaderLive
component
#5567
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 LGTM! This is a great PR. Easy to reason about and test.
The only thing I could think to add might be a link to the MDN docs for roles with implicit live regions ( https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes ) to help devs make informed decisions if they go away from the default role. Maybe not our purview, so use or reject as you feel appropriate.
src/components/accessibility/screen_reader_live/screen_reader_live.tsx
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super appreciate the new documentation tips/resources, I'm sure our devs will as well!!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/ |
Summary
Adds a new component originally proposed in #5157:
EuiScreenReaderLive
Uses a dual
aria-live
regions to allow screen readers to announce content updates in a timely and non-intrusive manner.Checklist