WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Accessibility clarification

for

From: Ugurcan Kutluoglu
Date: Aug 30, 2017 6:52PM


Naina,

A link should only be activated with Enter, unless you are using Aria to
override its default semantics.

Meaning, if it's a simple link that points to another page or an element on
the same page, then Space is simply overkill, and I'd file that as a bug.

However, if the link has an aria role attribute (role="button",
role="menuitem" etc.) that modifies its semantics, then you should check
the relevant best practices to see if the use of Space key is required or
recommended.

http://w3c.github.io/aria-practices/

For the Modal, yes ESC (and the Close button) should close the modal and
return focus to the element that triggered the modal.

Ugi

On Wed, Aug 30, 2017 at 5:36 PM, Katherine Barcham <
<EMAIL REMOVED> > wrote:

> Hi Naina,
> It's my understanding that when you're only using a keyboard to browse a
> web page you use the :
> * enter key to activate links, and
> * Spacebar or enter key to activate buttons.
>
> The way to close a modal using a keyboard is to use the:
> * Esc key to close it, or
> * Tab key to get to the Close link/button and then use the correct key to
> activate it (depending on whether it's a link or a button).
>
> I hope that helps you.
>
> Katherine Barcham
>
>