Open coforma-jamie opened 1 year ago
Some small improvements will be made as part of #68004 and #68002. Larger improvements will be handled at the design system level.
@coforma-jamie et al, our team is fixing the error message in the forms library in this ticket.
Point of contact
Jamie Klenetsky Fay
Severity level
2, Serious. Should be fixed in 1-2 sprints post-launch.
Details
There are a number of issues with the address component. The component is used on many forms, and CH36 is a good example. This ticket lays out small, medium, and large fixes to the component from an accessibility point of view.
Any changes applied to this iteration of the address component should apply sitewide.
Small
When a user checks "I live on a United States military base outside of the county," there are two immediate issues that crop up:
The "country" field is disabled
As explained in the form guidelines, there are two big issues with this:
The "APO/FPO/DPO" error message is incorrect
The error message says "City" is required, but the user isn't supposed to enter a city here:
Medium
Select boxes used when radio buttons would be more appropriate
When a user checks "I live on a United States military base outside of the county," the "APO/FPO/DPO" and "State" fields are select boxes, even though they only have 3 options to select from:
The select component guide notes that you should only use select "when a user needs to choose from about seven to 15 possible options and you have limited space to display the options." It's cognitively simpler to see a list of radio buttons when there's only a few options to select.
Large
Checkbox triggers conditional logic; is not "one thing per page"
When a user checks "I live on a United States military base outside of the county," some fields are removed, others are added. This can be confusing for folks, especially those using assistive technology, and goes against our "One thing per page" complete a sub task pattern.
Reproduction steps
Proposed solution or next steps
When "I live on a United States military base outside of the country." is checked:
Small
The "country" field is disabled
The "APO/FPO/DPO" error message is incorrect
Medium
Select boxes used when radio buttons would be more appropriate
Large
Checkbox triggers conditional logic; is not "one thing per page"
References, articles, or WCAG support
No response
Type of issue