WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML disabled or aria-disabled on checkbox

for

From: Patrick H. Lauke
Date: Jun 7, 2023 8:29AM


On Jun 7, 2023, at 1:58 AM, Laurence Lewis < <EMAIL REMOVED> >
wrote:
> But, which is the better option to use?

well, "it depends(tm)" on what you're trying to achieve. Is there any
particular reason why you want the checkbox to remain focusable, even if
that means having to add your own custom CSS and JS (to prevent it from
being actionable/checkable)?

I can't think of a reason why I'd want to have a checkbox that
(currently) doesn't do anything still focusable...

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
https://mastodon.social/@patrick_h_lauke | skype: patrick_h_lauke