Skip to content

Should disabled form elements be accessible? #7554

Answered by dakahn
dakahn asked this question in Help
Discussion options

You must be logged in to vote

In short, yes. A disabled form element should always have the disabled attribute and must not have aria-hidden or display: none so that screen readers can inform the user

If the form element's disabled state is meant to communicate and prompt action from the user you must have some other accessibility affordance. Our provided invalidText prop used on the preceding form step/element would work nicely

The user could then infer that the next form element is disabled because they have an unfulfilled requirement on the previous step.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dakahn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant