Re: Skip links - must they navigate to a focusable element?

On 19/06/2020 23:43, Catherine Ailanjian wrote:
> Regarding “skip to main content” links, must they navigate to the first  
> element in the main landmark?  Or to the first focusable element in the 
> main landmark?

There's no hard "must" type requirement. In many cases, skip links jump 
to the main container/landmark itself. Other times, they jump to the 
first heading that starts off the actual content in the main landmark 
container. Both of these are not in the regular focus order, generally 
(but often forced to be able to receive programmatic focus with 
tabindex="-1" to work around some annoying behavior in some browsers 
which otherwise don't set the focus start position to these new 
locations). And these examples are fine as well.

P
-- 
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke

Received on Friday, 19 June 2020 23:06:13 UTC