18F / archived-guides

A collection of 18F guides.
https://guides.18f.gov
Other
20 stars 12 forks source link

'Skip nav' does not set keyboard focus on content #35

Open mhokane opened 8 years ago

mhokane commented 8 years ago

Using the keyboard and initial tab to get the 'skip nav' option: when you hit enter or spacebar etc. to use 'skip nav' the page scrolls but focus is not changed to content, so you still have to tab through the nav anyway. You need javascript to make this a more robust solution (though it does work in FireFox without js) and guarantee focus will be changed.

Example implementation here: https://www.bignerdranch.com/blog/web-accessibility-skip-navigation-links/