WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Clickable on elements.

for

Number of posts in this thread: 2 (In chronological order)

From: mhysnm1964@gmail.com
Date: Tue, Jul 03 2018 2:21AM
Subject: Clickable on elements.
No previous message | Next message →

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.

From: Birkir R. Gunnarsson
Date: Tue, Jul 03 2018 5:21AM
Subject: Re: Clickable on elements.
← Previous message | No next message

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 ADDRESS REMOVED = < = EMAIL ADDRESS 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.