-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
add .sr-only-focusable #12679
add .sr-only-focusable #12679
Conversation
Confirming it works/fixing the behavior doesn't mean this makes the least bit of sense in regards to #12259. Continuing to apply the sr-only (screen reader only) class to an element whose primary audience is NOT even using screen readers is highly misleading. By continuing to recommend people apply the sr-only class to the skip navigation link you are misinforming developers, many of which will not look any further than "TWBS does it so it must be right". The skip navigation link is probably the oldest web accessibility feature that is still being used today. If you subvert developer understanding of what its purpose is then you run the risk of impairing its usefulness. |
Twbs certainly doesn't claim to have special accessibility expertise, but these uses of @GovCoder Do you have a specific suggestion as to how to style/place these? |
Don't give it a class at all and leave it up to the developer/designer to style. No change to TWBS code at all, just recommend that the first element after the body tag be a skip nav link. Currently I style it like so but to each their own:
|
@cfarquharson: Any chance WET's accessibility wonks could weigh in here? |
@pjackson this is all you, cuz you know more about this than I do. |
Any update from folks on this? |
Conflicts: dist/css/bootstrap.css
Rolling with this since it's basically the same solution as the HTML Boilerplate folks. |
This is actually quite funny, I created the issue after attempting to explain to my designer how a skip nav link is used and should be styled, after much debate their answer was pretty much "Rolling with this since the Twitter Bootstrap folks example says it is for screen readers only." |
Fixes #12259.
I've tested locally to confirm that this works.