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] EuiScreenReaderLive component #5567

Merged
merged 11 commits into from
Jan 31, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Jan 26, 2022

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

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/

@thompsongl thompsongl marked this pull request as ready for review January 27, 2022 20:44
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/

Copy link
Contributor

@1Copenut 1Copenut left a 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.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/

Copy link
Contributor

@cee-chen cee-chen left a 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!!

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5567/

@thompsongl thompsongl enabled auto-merge (squash) January 31, 2022 17:39
@thompsongl thompsongl merged commit 6ae51e7 into elastic:main Jan 31, 2022
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

Successfully merging this pull request may close these issues.

4 participants