-
Notifications
You must be signed in to change notification settings - Fork 356
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
Review navigation menubar example (menubar-1.html) #145
Comments
The code and role usage looks good, plus the focus movement. One note, at present the spec doesn't support the use of aria-expanded on role=menuitem, however this is an important addition that needs to be made in the spec to support touch screen devices. To this end, the following bug has been submitted: |
This comment on issue 144 In addition, it would also be very helpful to have some of the submenus to have submenus. So, for example, under academics, give colleges and schools a submenu that has items like engineering, business, Liberal Arts, etc. It would be good to have at least one sub submenu in each menu. You can have the sub/submenus go to the same landing page as their parent ... no need to create more fake landing pages. |
It's common in navigation menus for the top-level menu items to be hyperlinks that target a high-level landing page. Therefore these menu items serve two functions:
The current example doesn't account for this dual functionality. Any ideas? Perhaps space could trigger the link, and enter could reveal the submenu? |
According to the Nu Html Checker, aria-expanded is not allowed on |
@terrill On the topic of overloading items in the menubar as both elements that open a menu and navigate to a link target, we do not recommend this practice but have acknowledged that having enter and space navigate to the target and down arrow open the menu is a way of handling it. You can see this in the notes of the keyboard section in the design pattern. At this time, we have two different version of that section on the table per issue #120. |
@mcking65 @jongund @jnurthen @accdc Jon and I would like to get feedback on modified left/right arrow behavior. - it is close to window model now than MAC model but the behavior is a bit weird. If the focus in the first item of parent menu item(ie. focus is on "overview" under "about"), pressing right arrow key closes current popup list(ie."about") and open next popup list(ie: "admissions") and move the focus to the first item of next parent item(ie."apply") Is this the behavior we want to implement via revision? Here is the revised coding example. (Parent menu item never get focus in this scenario until escape key is pressed from the popup menu list and start over. The way that parent menu item can get focus with either left or right arrow is only when the popup menu is closed.) I appreciate any feedback on this. |
Very close. The only difference between this version and what we discussed having is that focus would land on admissions instead of apply. So, when focus is on addmissions, the admissions menu would be open and aria-expanded on admissions would be true. |
I've seen it implemented both ways successfully, where if Right or Left is pressed and the menu is automatically opened, or when it is closed and instead requires Down to be pressed in order to open it, as long as focus moves appropriately and aria-expanded is set correctly, it works accessibly in both types. |
Jon and I came up with a bit different template under the table of "Role, Property, State, and Tabindex Attributes", not exactly the same as yours. I wonder whether this is acceptable to you. For example, you have below infomation under the table of "Role, Property, State, and Tabindex Attributes"
We have below infomation under the same table, " Role, Property, State, and Tabindex Attributes"
Let me know it is ok. |
The revised right/left arrow behavior is like the pattern recommends, thank you. In your last comment, however, you wrote:
I am not sure what the first sentence means. As far as I can tell, it does not work that way, and that is not how we want it to work. So, that is good. What I observe is that if the "about" popup is open and focus is on any item in the about popup menu, then moving right opens the admissions menu and places focus on the admissions item in the menubar. In other words, it is now behaving as recommended in the |
One important feature of the pattern that is missing are sub>submenus. For example: You do not need to add more landing pages; just reuse the existing ones. I think it would be good to have one or more submenus in each popup. |
For roles, states, and properties, I like the 3-column format so we can provide usage notes about individual attributes. For example, in this one you are using roving tabindex and so we should have a usage note about that like the one I put on the data grid page. One goal I have is for editorial consistency so that we give consistent guidance across examples and reference the document itself where appropriate. |
@accdc @mcking65 @jnurthen @a11ydoer I still would like to see the keyboard support information in a table, it is much easier to read (at least visually) than the simple list. |
@mcking65 |
@mcking65 @jongund @jnurthen |
sure. Here is my git repo which menubar example is committed. |
Reviewed Navigation Menubar Example (http://w3c.github.io/aria-practices/examples/menubar/menubar-1/menubar-1.html): Example 1 > Notes: > 1. This example includes the ARIA roles and properties in the source code for authors to easily see which elements the roles and properties need to be included. Example 1 > Notes: > I'm not certain that the second item listed adds any information not already included in the first listed item. Suggest removing 2. "Role, Property, State, and Tabindex Attributes" table appears to be default and needs to be populated. |
Enter and space are not working correctly in the menubar. Raised issue #196. |
Closing; all feedback points have been addressed. final editorial work will continue in issue 267. |
Possible workaround for aria-expanded with role="menuitem" issue: notbeing able to see it, but in one example I saw something similar: |
@fsilvain commented:
Not aware of the issue you are describing. |
Matt King, Jun 21 2017:
@fsilvain commented:
> Possible workaround for aria-expanded with role="menuitem" issue: not being able to see it,
> but in one example I saw something similar:
> `<a role="button" aria-expanded=...`
> Would that work with touchscreens?
Not aware of the issue you are describing.
Hey hey Matt,
there was a validation problem with this menu example, which was under
discussion, so it would be valid. But until that time a workaround had
to be found. Sorry, can't log on to github from this system. One very
feasible workaround - mentioned in the comments to this issue - was
discarded, because it doesn't work (well) with touch displays. I am
sorry that I can't be more specific right now.
If the W3C HTML5 validator issue with this example gets solved, this
would be a moot point anyway.
Thanks for your reply.
Best wishes,
Ffanci
...
* Homepage: https://freeshell.de/~silvain
* Twitter: http://twitter.com/ffanci_silvain
* GitHub: https://github.com/fsilvain
|
As discussed in the ARIA Caucus meeting earlier today the ARIA group is in agreement that aria-expanded should be supported within menuitem roles, and the discussion currently is whether to pull 1.1 out of CR briefly to address this plus a couple of other things quickly, then to put 1.1 back into CR. Support is a technical detail at this point and in practice for coding aria-expanded is valid on links, buttons, and menuitems, regardless what validators are flagging in this regard. |
Hello, I have problems getting the example to work on my new webpage. As far as I can see, I followed the example as closely as possible, including the correct CSS and JavaScript. I wasn't able to get help from other web developers. Can someone here help or suggest a proper forum? Best wishes, Ffanci |
Does not I was testing menubar example at w3c website on NVDA( version 2023) + Chrome, surprisingly NVDA not announcing the collapsed state of the menu item in focus mode. what is wrong with the code? However, Voiceover(Macbook ios) is announcing correctly the collapsed state as " About, Collpased, submenu". Here is the screenshot of the element along with NVDA speech viewer results. |
@JaiRai0304 The same problem occurs with screen reader JAWS. It may be a conscious decision of the screen readers not to output this information because it is not particularly relevant because: To get to the submenu, I press the arrow key and it always takes me to the submenu, whether it is already open or not. |
Provide editorial and functional feedback on the
navigation menubar example.
The text was updated successfully, but these errors were encountered: