-
Notifications
You must be signed in to change notification settings - Fork 355
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
Menubar Navigation Example: Make single page and improve implementation of APG coding practices (try 2) #1741
Conversation
@mcking65 |
…th to current item documentation
@mcking65 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an approving editorial review! Thank you @jongund! This is a really big step forward.
@mcking65 I love the Caution box! Quick question, though - it talks about menu navigation, but the rest of the example page talks about menubar navigation. Should we change Also, the first bullet in the note had so many words that I had to read it twice to parse what it was saying. Does it make sense to split it up with a comma followed by a noun phrase, as follows?
|
@mcking65 |
@mcking65 Suggested edit: |
@mcking65 I like Jon's edit to the first bullet in the cautionary note. (fewer words - yay!)
|
I suggest adding an additional statement to Carolyn's edit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
This is an approving functional review!
Nice work, @jongund !
Attached the screenshots showing 1 and 2 scenarios: |
|
@shirsha |
@shirsha |
@jongund I really like the visual changes you made - I think it makes it much clearer which item is focused vs. current. I'm interested to hear what @shirsha thinks. Regarding your question about maybe having the current page menu item in the tab order instead of the last focused top level menubar item, I can't decide. Here are some random thoughts (in no particular order, and probably not very helpful because I didn't reach any conclusion... 😂 ):
Sorry to be undecided... but I guess if I had to choose, I am leaning towards keeping the behavior as it currently is (i.e. the last item that was focused keeps the tabindex="0"). |
The visual focus looks good. Thanks @jongund and @carmacleod With respect to the tab order I agree with what @carmacleod mentioned.
Will this confuse the user? |
Thanks so much, @carmacleod @jongund @shirsha @mcking65 |
I think the current implementation is the best:
|
@JAWS-test |
It is interesting that both section 4.3 of the ARIA spec and section 6.6 of APG - Keyboard Navigation Inside Components say that it is typical for the first item in menubars and toolbars to receive focus rather than most recent. I'm unsure of the origin of that suggestion. We are certainly not following it. And, perhaps they should both be updated? |
@jongund commented:
I don't think we need the additional words of the second sentence because that it is rather obvious when comparing menubar and disclosure examples. Also, it is somewhat more evident from the wording I just committed. This wording emphasizes that it is the required functionality of menubar that is unnecessary:
|
If accessibility features documentation is accurate and reviewers are OK with my revision of caution box and intro, I will merge. |
I suspect the cause is that in desktop applications, it is often the first menu item that gets focus, not the last focused one. However, it should be noted that in desktop applications the menu is often not reached with Tab, but only with Alt Key. However, the standard may also be changing in desktop applications: In Microsoft Office products such as Word and Excel, pressing Alt now focuses on the last focused menu item and not the first. Before anything is adjusted in the ARIA specification and APG, however, more menus should be examined to find out what is currently standard and good usability. Then this menu should be adjusted or the specification so that it is consistent in the end. Possibly, no recommendation for menus should be given at all, because the best implementation depends on the context of the menu. In some cases it may make sense to focus on the first element, in others on the last focused one, depending on whether or not the work or navigation can be continued meaningfully with the last one. In a navigation menu, for example, I would expect the last focused item to receive focus again, so that I can quickly perceive what the active menu item is. In an action menu, I would only expect the active menu item to receive focus if it is expected that, for example, after assigning a particular formatting, I will want to perform another action that is in the same submenu. In submenus, on the other hand, the first menu item should probably always get the focus. Therefore, I suggest the following:
|
Merging based on final discussion in today's meeting. Thank you @jongund for this awesome update! |
@mcking65 |
Updated pull request fix merge problems with pull #1612:
Preview Link
Changes:
Review checklist