-
Notifications
You must be signed in to change notification settings - Fork 25
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(#2028): add accessibility features #2057
Conversation
495a3e2
to
b7036c0
Compare
4eba8d3
to
19abc89
Compare
3fa3fb4
to
171c970
Compare
Helper Text and Error Text Was not read out by NVDA and Narrator The Requirement of this ticket specified that help text and error text should be ready out, however, even aria-describedby="helptext-akr95iq" exist, NVDA and Narrator does not read it out Code Example as such
|
28d3cab
to
e89906a
Compare
2028-NVDA-ScreenReader-RegFlow.mp4 |
2028-NVDA-ScreenReader-Validation.mp4Video is showing that screen reader announces the 'error' as soon as the validation happens. |
2028-NVDA-ScreenReader-onFocus.mp4As requested, when an input element is focused, the screen reader announces the helper text (note that there is no validation error yet). NOTE: I have modified the outline to 1px solid red only for the video.... so that when the radiogroup is focused in using tab button, it is visible. There is announcement when the Radio group is focused as well as when an individual radio item is focused. I can change if this is not the desired behavior. |
2028-NVDA-ScreenReader-onFocus-Validation.mp4But when there is validation error, and an input element is focused, the screen reader announces the NOTE: I have modified the outline to 1px solid red only for the video.... so that when the radiogroup is focused in using tab button, it is visible. There is announcement when the Radio group is focused as well as when an individual radio item is focused. I can change if this is not the desired behavior. |
For this case, the NVDA still announces the |
e89906a
to
38c2620
Compare
38c2620
to
9dc9784
Compare
9dc9784
to
3793fa9
Compare
3793fa9
to
8fa3e72
Compare
🎉 This PR is included in version 1.17.0-alpha.121 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.0.0-alpha.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.0.0-alpha.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Before (the change)
After (the change)
-The code adds appropriate aria-* attributes based on whether a field is required, has helper text and/or error text or both.
-When focused, the screen reader announces the helper text and/or error text
Make sure that you've checked the boxes below before you submit the PR
Steps needed to test
Playground Test Code