Code for solution is going to be ported from another project.

Problem/Motivation

Groups of radio buttons and checkboxes are not marked up in a group using a fieldset or group role.

Ensure all groups of radio buttons or checkboxes (where they are multiple checkboxes for a question) are marked up following the recommendation.

Acceptance criteria

AC 1 - Radios
Given I’m an anonymous user
And I’m using screen reader technology
When I am interacting with radio buttons on a webform
Then the inputs are inside a
And the first element has a tag

AC 2 - Checkboxes
Given I’m an anonymous user
And I’m using screen reader technology
When I am interacting with checboxes on a webform
Then the inputs are inside a
And the first element has a tag

Proposed resolution

CommentFileSizeAuthor
#7 checkboxes.png350.84 KBdanielgry
#7 radio.png378.17 KBdanielgry

Comments

fionamorrison23 created an issue. See original summary.

fionamorrison23’s picture

Issue summary: View changes
fionamorrison23’s picture

Version: 1.10.0 » 1.x-dev
fionamorrison23’s picture

Title: Related form fields are not grouped in code » WCAG - Webforms - Related form fields are not grouped in code
fionamorrison23’s picture

richardgaunt’s picture

Assigned: Unassigned » danielgry
Status: Active » Needs review

@danielgry I have feeling this was fixed in a version previously but can you check that checkboxes and radios are grouped in a fieldset.

danielgry’s picture

StatusFileSize
new378.17 KB
new350.84 KB

Verified and tested on dev

Testing results:
1. Verified radio buttons in forms are wrapped in a fieldset - PASS
2. Verified checkboxes in forms are wrapped in a fieldset - PASS
3. Confirmed keyboard navigation through radio and checkbox buttons works as intended - PASS

Screenshots:
Radio buttons:
image

Checkbox buttons:
image

danielgry’s picture

Assigned: danielgry » richardgaunt
Status: Needs review » Reviewed & tested by the community
richardgaunt’s picture

Version: 1.x-dev » 1.13.0
Assigned: richardgaunt » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.