WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Should disabled elements receive tab focus

for

From: Jared Smith
Date: Oct 28, 2016 8:14AM


You can use aria-disabled on the control instead and a screen reader
user would be informed that the control is disabled - though it
wouldn't actually be disabled unless you use scripting to render it
unusable.

Sometimes developers want a disabled control to be navigable because
the disabled state is used to indicate something else about the form -
such as a disabled button indicating that there is a form validation
issue. This pattern can be rather confusing to everyone and there are
certainly better ways to provide error feedback.

Jared