WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Clickable on elements.

for

From: Birkir R. Gunnarsson
Date: Jul 3, 2018 5:21AM


The key success criteria are 2.1.1 (keyboard). Any element you can
operate with the mouse must be keyboard accessible and 4.1.2 name,
role, value, any element that performs an action must have an
appropriate role.
If you have a span with an onclick event that does something it violates both:

1. A span by itself is not keyboard operable (it can' be focused or
operated with the keyboard, you can make it work in screen reader
browse mode that simulates onclick events but a keyboard only user is
S.O.L).
2. It does not have a role. If it pops ups info it should be a button,
if it navigates it's a link, if it toggles states its a checkbox, or a
toggle button or a switch.



On 7/3/18, <EMAIL REMOVED> < <EMAIL REMOVED> > wrote:
> All,
>
>
>
> Does having the clickable due to onclick or onmouse attribute fail any W3C
> SC's? I had a look and could not see anything at level AA. 2.4.9 seems to
> be
> the closest and is an AAA level.
>
> > > > >


--
Work hard. Have fun. Make history.