WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Jquery.focus() and screen reader

for

From: JP Jamous
Date: Aug 16, 2017 10:28AM


Thanks Patrick. That's helpful.

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Patrick H. Lauke
Sent: Wednesday, August 16, 2017 11:02 AM
To: <EMAIL REMOVED>
Subject: Re: [WebAIM] Jquery.focus() and screen reader

On 16/08/2017 17:00, Patrick H. Lauke wrote:
> Don't set tabindex=0 on non-interactive elements, as otherwise they'll
> fall into the regular keyboard focus cycle.

sorry, missed out the second part of my thought: set it to tabindex="-1"
which means "programmatically focusable (e.g. via JS), but not in the regular focus order"
P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke ---
This email has been checked for viruses by AVG.
http://www.avg.com