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
>
> -----Original Message-----
> From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On
> Behalf Of Mamta Gupta
> Sent: Thursday, 31 August 2017 10:32 a.m.
> To: <EMAIL REMOVED>
> Subject: [WebAIM] Accessibility clarification
>
> Just wanted to clarify few points on accessibility testing.
> 1. Do all links on the webpage should be activated both by enter key and
> space bar on keyboard, or they should be activated just with enter key?
>
> I was going through keyboard shortcuts on webaim, that shows
> - Enter key is used to activate links.
> - To activate buttons: enter key and space bar is used.
> - To scroll page space bar is used.
>
> I was testing a page where links can be activated both by space bar and
> enter key.
> When I tried to scroll the page using space bar, it used to activate the
> focused link.
> Is this behaviour acceptable for accessibility?
>
> One more thing, whenever a modal box or a form is displayed on the top of
> the current page and lets say non sighted user would like to come off that
> modal box or the form, what would be the process.
> Should escape key be used to dismiss the box for non sighted user to get
> rid off that box or form or he needs to tab to the close button for closing
> it.
>
> Please advise.
>
> Thanks,
> Naina
> > > at http://webaim.org/discussion/archives
> > > > > >