508-defect-3 [SEMANTIC MARKUP]: Radio inputs with the same name attribute value MUST be part of a group #9174
Labels
508-issue-semantic-markup
Non-semantic or invalid markup - https://www.w3.org/TR/WCAG20-TECHS/G115.html
1010-team
10-10 Team
a11y-defect-3
Medium-severity accessibility issue that should be fixed within 1 - 3 sprints
accessibility
vsa
Work associated with the Veteran-facing Services Applications contract
508-defect-3
Feedback framework
Description
Radio inputs that have the same name value must be part of a group, ensuring related
<input type="radio">
elements have a group and that the group designation is consistent. Fieldset contains unrelated inputs.The "Learn more about Medicaid" show/hide
<button>
must not be in a fieldset.Recommendation for the Caregiver team
The health care coverage program learn more should be moved back to above the form into a Learn more show/hide. There is a forms system issue, where the
<button>
cannot be in a<fieldset>
, so these toggles need to be changes to<a href…
and JavaScript added to support that behavior. For sake of scalability and maintenance, this is the responsibility of VSP to create a forms system component.Additional issues to be addressed in the forms system: Update the Additional Info component to be used for Learn More expandable sections in forms #4330
Point of Contact
VFS Point of Contact: Jennifer
Acceptance Criteria
As an assistive tech user, I want form checkbox and radio inputs to be matched with the related input and group labels.
As a screen reader user, I want to digest the content of the page with minimal repetition and extraneous noise.
Environment
Steps to Recreate
<input type="radio" id="root_primaryMedicaidEnrolledYes" name="root_primaryMedicaidEnrolled" value="Y">
Possible Fixes (optional)
Current code
Recommended code
In a future forms system update, it would be great if it might wrap the radio/checkbox input with the label. This is not being asked of the Caregiver team.
WCAG or Vendor Guidance (optional)
Info and Relationships: Understanding SC 1.3.1
MDN Using the aria-labelledby attribute
WebAIM discussion on radio input code pattern
Screenshots or Trace Logs
The text was updated successfully, but these errors were encountered: