Skip to content

Style aria-disabled the same as disabled #4508

Description

@HarlanAtWork

Is your feature request related to a problem? Please describe.
I've found accessibility guidance advising the use of the aria-disabled attribute instead of the disabled attribute for form controls. (See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled.) Modern ARIA-compliant browsers prevent activation of and editing in controls on which aria-disabled is set in the same manner as they do for disabled controls. However, they don't hide those controls from the screen reader, from the reading or tab order. (Instead, the screen reader informs the user that they're disabled.) It's essential to screen reader users to know that the controls are there.

However, USWDS 2.13.1 doesn't take note of aria-disabled, so the visual user has no cues that controls have been disabled by use of that attribute.

Describe the solution you'd like
Style controls with aria-disabled identically to controls with disabled.

Describe alternatives you've considered
An alternative would be to stick, as the web developer, with disabled, but the accessibility consideration seems to have merit.

Additional context
None.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions