fix(FormGroupLabel): enable screenreaders to read a label's "optional" text#2996
fix(FormGroupLabel): enable screenreaders to read a label's "optional" text#2996codecademydev merged 14 commits intomainfrom
Conversation
|
View your CI Pipeline Execution ↗ for commit cf87da0. ☁️ 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 |
aresnik11
left a comment
There was a problem hiding this comment.
Preview is being funky but confirmed everything is working as expected locally and on the mono and monolith previews
📬Published Alpha Packages:@codecademy/gamut@57.7.1-alpha.cf87da.0 |
|
🚀 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-hiddenbut 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-hiddenon the*.PR Checklist
Testing Instructions
optionaltext is being read aloud—-
for mono:
profiles/<username>/edit—-
for monolith:
/account)—-
PR Links and Envs