WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Regarding the accessibility of dual menu links

for

From: Bryan Garaventa
Date: Nov 14, 2013 11:58AM


Menus are always tricky on touch screens, but it is possible to modify the
functionality conditionally using the syntax:

if ('ontouchstart' in window){
// Do something
} else {
// Do something else
}

Which helps when modifying the onFocus and onBlur events if present, so that
the menu doesn't disappear when using touch to browse available menu
options. For something like this, it would take a bit of experimenting to
see what the best combination would be though.

----- Original Message -----
From: "Alastair Campbell" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Thursday, November 14, 2013 10:33 AM
Subject: Re: [WebAIM] Regarding the accessibility of dual menu links


> Thanks for that Bryan,
>
> Have you seen any examples that work with touch as well? I assume that is
> not catered for as it uses hover/focus?
>
> That may not be a big problem as you can select the default option, but I
> was curious...
>
> -Alastair
> > >