-
Notifications
You must be signed in to change notification settings - Fork 541
Add note about proper usage of tabindex
with skip links
#635
Comments
I was going to say that this may be unnecessary, as it's mentioned explicitly later on in the same section...but then realised that the note about |
I mostly used your excellent initial suggestion there in my proposal, with one major difference: I changed the "must" to "should" |
Yeah—I went back and forth—"must" is a big word. As a side note, I think the following may also confuse people:
I think in people's mind, this translates to: |
As the concepts get a bit convoluted (once you realise that tabindex="-1" also means "focusable", but not part of the sequential focus navigation order), this is a fairly crude initial attempt at disambiguating this (as per #635 (comment) comment)
As the concepts get a bit convoluted (once you realise that tabindex="-1" also means "focusable", but not part of the sequential focus navigation order), this is a fairly crude initial attempt at disambiguating this (as per w3c#635 (comment) comment)
The warning in section 5.4.3 by @patrickhlauke is a great addition but I think the following sentence needs to be seriously emphasized:
or may be followed by something like:
Authors must use
tabindex="-1"
onto elements that need to receive focus but are not meant to be part of the sequential focus navigation (i.e. the target of a skip link).I think this is important to mention because it seems many people do not make the difference between "being focusable" and "being keyboard accessible"—assuming that to be focusable, an element has to be part of the tab sequence.
These 2 skip link examples demonstrate the issue:
The text was updated successfully, but these errors were encountered: