-
Notifications
You must be signed in to change notification settings - Fork 14
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(PPDSC-2216): add aria-required to form-input-components #257
fix(PPDSC-2216): add aria-required to form-input-components #257
Conversation
You can preview these changes on: |
@Vanals Hey, can you take a look at this PR in terms of a11y? The task was to add I talked with Stoyan and he pointed me to this aria-required article and we agreed on instead of using Just want to confirm that this is ok with you. 🙏 |
Thank you @evgenitsn! Everything you listed: tests, Screen reader, etc ; sounds to be happy. So I guess its ok to use the Maybe a bit confused on why wasn't working on the combobox? If you want you could also test it on NVDA, using assistive labs. We had bugs coming from DOW requiring us to work with assistive labs. Could also be an occasion to get familiar with it! You can find the credentials in the dev channel! Here you can find how to use NVDA: https://nidigitalsolutions.jira.com/wiki/spaces/NPP/pages/3579936811/A11Y+guidance+for+Developers Happy to help |
@Vanals Here is the axe dev tools output when I am using aria-required on a form input select. Happy to show that to you on a call if you think it's worth it. |
* fix(PPDSC-2216): add aria-required to form-input-components * fix(PPDSC-2216): update required attribute * fix(PPDSC-2216): rephrase condition checks * fix(PPDSC-2216): update required props * fix(PPDSC-2216): update snapshots
PPDSC-2216
What
Added
aria-required
forFormInputComponent
s -Select
/Radio
/Checkbox
when they are set as required.The story mentions the
aria-invalid
as well but this one is used only forinput
fields, so no changes there.I have done:
I have tested manually:
Before:
After:
Who should review this PR:
How to test: