-
If a form element is disabled does it need to be accessible? If so, how? |
Beta Was this translation helpful? Give feedback.
Answered by
dakahn
Jan 13, 2021
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dakahn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In short, yes. A disabled form element should always have the
disabled
attribute and must not havearia-hidden
ordisplay: none
so that screen readers can inform the userIf 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 nicelyThe user could then infer that the next form element is disabled because they have an unfulfilled requirement on the previous step.