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

fix(TextArea): add aria-live and aria-placeholder #6819

Merged

Conversation

dakahn
Copy link
Contributor

@dakahn dakahn commented Sep 10, 2020

Closes #5547

Placeholder text and invalid entry text wasn't being read by JAWS in our TextArea component. This PR makes the following changes:

  • adds an aria-live region
  • adds a role="alert" attribute to the invalid entry alert node*

*This is redundant, but potentially useful for certain browser/screen reader combinations (or identifying the node as an alert in the Accessibility Tree). It didn't cause any unintended consequences in my testing.

Testing / Reviewing

We should be careful that we're not breaking existing support with either NVDA or VoiceOver. In my testing this was not the case, but to be safe we should see how this reads in VoiceOver on Safari in particular 👍

@dakahn dakahn requested a review from a team as a code owner September 10, 2020 21:47
@netlify
Copy link

netlify bot commented Sep 10, 2020

Deploy preview for carbon-elements ready!

Built with commit 16758d3

https://deploy-preview-6819--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 10, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 16758d3

https://deploy-preview-6819--carbon-components-react.netlify.app

@dakahn dakahn mentioned this pull request Sep 18, 2020
36 tasks
Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥 👍 ✅

@kodiakhq kodiakhq bot merged commit c239c1c into carbon-design-system:master Sep 23, 2020
@wkeese
Copy link
Contributor

wkeese commented Jan 15, 2021

If TextArea has role=alert, shouldn't TextInput etc. have it too?

@dakahn
Copy link
Contributor Author

dakahn commented Jan 15, 2021

@wkeese for invalid entries, yeah -- I'll open tickets for the remaining text input components. good looking out 👍🏽

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

Successfully merging this pull request may close these issues.

JAWS Screenreader not Reading TextArea Placeholder and InvalidText
4 participants