A11y: Conditions 660 663/prototype autocomplete labels #33791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Are you removing, renaming or moving a folder in this PR?
Examples of a TeamSite: https://va.gov/health and https://benefits.va.gov/benefits/. This scenario is also referred to as the "injected" header and footer. You can reach out in the
#sitewide-public-websites
Slack channel for questions.Did you change site-wide styles, platform utilities or other infrastructure?
Summary
This change only affects the Autocomplete component that appears on the Apple & Cherry prototypes under user-testing/new-conditions.
Previously we were using the form systems labels, and not the built in labels of VATextInput. So when you clicked on the label text, it didn't activate the text input and move focus there. This PR uses those labels instead. This also fixes the screenreader reading out "*required" separately from the rest of the label.
Related issue(s)
For
Testing done
To test:
Go to http://localhost:3001/user-testing/new-conditions/new-conditions-apple/0/condition?add=true
OR
http://localhost:3001/user-testing/new-conditions/new-conditions-cherry/0/condition?add=true
Screenshots
https://www.loom.com/share/1d56fc2b4f574b44a667c7da8958e31a?sid=0b6f6e02-52bf-4784-919c-d3e638557ca5
What areas of the site does it impact?
and
Acceptance criteria
Quality Assurance & Testing
Error Handling
Authentication
Requested Feedback
(OPTIONAL) What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?