New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A11y: provide content skip links for keyboard/screen reader users #1153
Comments
|
This is part of the WCAG spec Useful links: |
|
Thanks for the feature request. This is approved if anyone wants to jump on it! |
|
Just to add to this, I had to press the tab button 80 times before I could go to the first post. |
|
Adding this to just before the dev logo in the nav <a href="#articles-list" class="skip-content">Skip to content</a>and this to your CSS .skip-content {
position: absolute;
top: 0;
left: 50%;
transform: translatex(-50%);
background: black;
color: white;
z-index: 9999;
padding: 13px;
cursor: default;
pointer-events: none;
opacity: 0;
}
.skip-content:focus {
pointer-events: auto;
opacity: 1;
}Which is not something the everyday user would notice. But would make life, hopefully, a lot easier for keyboard users. Thoughts? |
|
@Link2Twenty I think this demonstrates a great, straight-forward implementation! From WebAIM's site:
|
|
Tackling this currently! |
|
This is partially implemented am I correct? |
|
Correct, right now it's a pretty naive implementation that only works on the home page. |
|
Could there not be a unique ID that was added to the Was rather excited to see there was a skip link on the site, and then was immediately disappointed to realize it didn't do anything on anyone's posts. :( |
|
The most semantic route forward is probably to guarantee that an |
|
"the most semantic route forward" is a debatable statement, but doing a quick audit of the site, a fair one based on the lack of proper heading structure / general misuse of heading for a good portion of the site that aren't people's posts. That said, it seems that a |
|
@nickytonline I'll take a look at some point with this. Thanks! |
|
Hey, @colabottles I'm working on issue #4807 but I'd love to help you out over a live stream sometime to finish this PR up. |
|
Whoever takes this on, create small PRs. We can do one page at a time. |
|
This issue is closed since we now have added the skip link functionality to all pages 🎉 There is a small piece of work remaining - currently when a user navigates internally (link click), the skip link isn't the first item focused on the new page. This is captured in #13505, should be a quick fix and once implemented users should be able to get the most out of the new skip links 😄 |


Is your feature request related to a problem? Please describe.
When users navigate a page with keyboard tabbing, screen readers, or other assistive technology, a useful pattern is to provide a "Skip to Main Content' skip link before navigation or long lists (Tags list, etc).
Describe the solution you'd like
A visible skip link that pops up when a user has tabbed into an element like the nav or long tags list.
Additional context
https://webaim.org/techniques/skipnav/
The text was updated successfully, but these errors were encountered: