-
Notifications
You must be signed in to change notification settings - Fork 30
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(FormGroupLabel): enable screenreaders to read a label's "optional" text #2996
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 99d0e5f. ☁️ Nx Cloud last updated this comment at |
If we're reading |
That's a good point Tim, was there a field that you noticed VO didn't announce "required"? So VO should pick that up. But with this PR, we also had selectively decided to NOT have VO announce the "optional" text since it seemed implied that anything that didn't announce "required" must be optional. However, there seems to have been a change in guidance, so also changing it to have VO announce "optional" text for labels. Setting |
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Currently, Gamut's forms' labels include either
*
to signify required, or(optional)
to tell learners what fields are necessary.Both are set to
aria-hidden
but a test.io filing requests that the(optional)
be read aloud.This PR changes the
(optional)
text to be read along with the label text and keeps thearia-hidden
on the*
.PR Checklist
Testing Instructions
optional
text is being read aloud—-
for mono:
profiles/<username>/edit
—-
for monolith:
/account
)—-
PR Links and Envs