WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML disabled or aria-disabled on checkbox

for

From: Laurence Lewis
Date: Jun 7, 2023 2:12PM


I will continue with my HTML first mantra and use disabled over
aria-disabled.


HTML disabled comes with built in accessibility. The disabled element
(checkbox) is not checkable, but still discoverable by screen readers, and
spoken as disabled. The browser provides disabled visual styling.


ARIA aria-disabled is spoken as disabled, however remains in the tab order,
is checkable, and requires custom styling by the developer.


There could also be some confusion for users that a disabled checkbox is
checkable using aria-disabled.


Thanks for the feedback it has helped.



Laurence