-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
[Question] Potentially Missing ARIA roles in the Navbar #15829
Comments
Am I correct to assume you're talking about the kitchen sink navbar example? For navigation, that's covered by the use of the That's pretty much what's covered in the wiki: http://www.w3.org/WAI/GL/wiki/Using_HTML5_nav_element For the |
The difference as I understand it is in the definitions. E.g. the navigation role: A collection of navigational elements (usually links) for navigating the document or related documents. and the nav element: The `nav` element represents a section of a page that links to other pages or to parts within the page: a section with navigation links. These definitions combined with the W3C recommendation that "adding the ARIA The following example is shown: <nav role="navigation">
<ul>
<li>About us</li>
<li>Services</li>
<li>Contact</li>
<li>Location</li>
<li>Why Groovy?</li>
</ul>
</nav> |
There's no difference. The purpose is noted in the working draft you linked, however, it's in a note:
The point of the landmark and the element is the same when used properly. WAI's wiki authors err on the side of broadly targeting user agents. IE8 is the only browser in Bootstrap support that doesn't also natively support the
|
Regarding |
The subject of I'll have to set some time aside to double-check what the best advice here would be. It will likely require some explanation in the docs about the above distinction (navigation menu versus application menu), and then consistently applying the right roles in the examples. I'll pop this on my to-do :) |
If we follow http://www.w3.org/TR/wai-aria/roles#menu
|
yes, a raw |
I really appreciate the time to explain some of this @patrickhlauke and for the link @cvrebert. Seems much more complex in implementation it seems in the specs/recommendations. I'm assuming #15109 comes under the "Note: When support for HTML5 improves there may be no need to continue to add the ARIA role="navigation"." statement at the end of the role="navigation" in the aforementioned link. Just confusing that W3C also says, "in order to make the structure more accessible to user agents that support ARIA as well as ensuring that user agents that don't support HTML5 can also understand the structure, adding the ARIA |
@patrickhlauke would you be interested in having any help (e.g. pull request) for the docs regarding clarifying navigation menu vs application menu or would you prefer to handle that based on your experience? |
Hey guys,
I had a question regarding the navbar example in the docs after doing some more reading this evening about accessibility.
First, I was curious what the reason was for not using
role="navigation"
on the navbar at the<nav class="navbar navbar-default">
line.Second, I see we are using
role="menu"
within the navbar, and I saw on the W3C standard that it shows list items withrole="menuitem"
and I was wondering if there was a reason we aren't using those roles.Thanks for the explanations and if any of this should end up requiring a pull request to add these I'll be happy to put that together. Thanks for your time and help
The text was updated successfully, but these errors were encountered: