-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(TextArea): add aria-live and aria-placeholder #6819
Conversation
Deploy preview for carbon-elements ready! Built with commit 16758d3 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 16758d3 https://deploy-preview-6819--carbon-components-react.netlify.app |
…5547-jaws-placeholder-invalid
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.
💥 👍 ✅
If TextArea has |
@wkeese for invalid entries, yeah -- I'll open tickets for the remaining text input components. good looking out 👍🏽 |
Closes #5547
Placeholder text and invalid entry text wasn't being read by JAWS in our TextArea component. This PR makes the following changes:
aria-live
regionrole="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 👍