-
-
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
Bootstrap tabs WAI-ARIA attributes set for better accessibility #13554
Comments
According to the WAI ARIA spec, it is also required to completely remove the wrapper tag for the tab panels. (the div with the |
|
Would it be acceptable to add the aria-controls attributes based on the href target of the anchors they are being applied to? |
the role="tabpanel" doesn't need to be applied to the parent div it's only needed for the content div :
must be :
|
@goetsu i believe that is incorrect. please refer to the examples for http://www.w3.org/TR/wai-aria-practices/#tabpanel - e.g. http://www.oaa-accessibility.org/examplep/tabpanel1/ [edit: also, please don't start fragmenting the discussion from https://github.com/w3c/wai-wcag-quickref/issues/2#issuecomment-86899548 to here as well] |
that's what i do and there is no role tabpanel on the parent div , as this is a bootstrap issue I look more logical to duplicate it here but I can keep with the initial comment on wai wcag quickref if you prefere
|
and there isn't a |
|
Ah, now I see what you mean. Your second code example removes Can I suggest that you don't simply append comments to issues like this in future, and please file an appropriate separate issue, being quite specific about what you actually mean? |
ok sorry for that and I agree that the actual tab panel itself need role="tabpanel" |
What's the status of this one? Does a lot of stuff still need addressing? What can be done in v3 vs v4? /cc @patrickhlauke |
Need some time to review what our current state of tabs is, as I've admittedly lost track. I'm guessing if we're still missing something related to attributes, that'll be fixed with my plan to automagically inject them. |
I've been doing some work recently with adding additional accessibility and flexibility to the already good work done with tabs. One thing relevant here is changing the attribute on the tab from So this is basically following Step 1 of the Pull Request contribution guidelines: asking first if my work and contribution would be useful. |
Bootstrap 3 is no longer being officially developed or supported. All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4! <3, |
Again from the paypal/bootstrap-accessibility-plugin, these changes should be added to the documentation and the JS plugin.
Tab Panel
Add ARIA roles like tablist, presentation, and tab for tabs UL, LI.aria-expanded, aria-selected,aria-controlsfor tab.tabpanel, tabIndex, aria-hidden, and aria-labelledBy for tabPanel.aria-expandedfor tab when it is activated and add aria-hidden to hide the previously visible tab.The text was updated successfully, but these errors were encountered: