WCAG Webforms - aria-describedby & aria-invalid properties in wrong location

Created on 3 April 2025, 7 days ago

Problem/Motivation

The aria-describedby and aria-invalid properties have been placed in the wrong location. They should be on the input (
, etc.) however they have been placed on the container

.

Acceptance criteria

AC 1 - aria-describedby
Given I'm an anonymous user
And I'm using screen reading technology
When I submit a form and there is an error in the submission
Then the aria-describedby attributes is within the input element (,
, )
And it should reference the ID of a valid descriptive text element.

AC 2 - aria-invalid
Given I'm an anonymous user
And I'm using screen reading technology
When I submit a form
And there an invalid input value
Then the aria-invalid attribute should be placed on the input element (,
, )
And it should be set to "true" to indicate the invalid state.

Proposed resolution

🐛 Bug report
Status

Active

Version

1.10

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024