-
Notifications
You must be signed in to change notification settings - Fork 359
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 revised Navigation Menu Button Example #384
Comments
@mcking65 @jongund Other that it looks good. I am so glad to see the closure of the menu button examples! |
Keyboard support > Menu button is missing the following Key and Function: Tested using Win10/FF 53.0 |
Keyboard support > Menu > Space performs none of the specified functions:
Keyboard support > Menu > Enter performs only one specified function of activating the menu item (link). Because the linked page is opened and replaces the page with the Menu, unable to tell if Enter closes the menu or sets focus on the menu button. Tested using Win10/FF 53.0 |
Keyboard support > Menu > A-Z and a-z does not perform as expected and there is a typo in the first bullet:
Pressing A-Z and/or z-a does move focus to the typed character, but closes the menu. Same issue as in #382 Tested using Win10/FF 53.0 |
For issue #384: 1. Per feedback from @a11ydoer, fixed broken link in footer nav. 2. Per feedback from @annabbott, changed spelling of "lable" to "label".
Per feedback from @annabbott in issue #384, the optional behavior for the space bar of activating a menu item is not implemented. Removed this key from the table of keys supported in the menu.
@a11ydoer commented
Fixed in e3e2bae. @annabbott commented:
Ann, Escape is described in the subsequent table of keys for the menu. @annabbott commented:
These are optional behaviors, so removed Space from the supported keys in the keyboard table in commit 9c51c87. @annabbott commented:
Fixed the typo in e3e2bae. I cannot reproduce the menu closing on typeahead behavior in FF 53 on Win 10. |
Verified target of Menu Button Design Pattern in WAI-ARIA Authoring Practices 1.1 link corrected. |
annabbott commented: Ann, Escape is described in the subsequent table of keys for the menu. You're correct, Matt - THANKS! |
annabbott commented: These are optional behaviors, so removed Space from the supported keys in the keyboard table in commit 9c51c87. Verified that Space was removed. |
annabbott commented:
Fixed the typo in e3e2bae. Verified that typo is fixed. |
Hello, I am currently implementing your Navigational menu button example here and have found that the javascript throws an error when you press either the left or right arrow keys.
These appears to be caused by the MenuItemLinks function
Since this is a menu button and not a menubar, this.controller.menubar is undefined in the PopupMenu object. If I come up with a viable solution, I will let you know. |
I will remove the LEFT and RIGHT conditions since they are not needed in this example, since it is a vertical menu. |
I just made pull request that fixed the left and right arrow issues and fixed the spelling of "label" |
…abel" (pull #392) 1. To fix bug raised by @racer2207 in issue #384, removed event support for LEFT and RIGHT arrow keys. 2. Changed "lable" to "label" in keyboard table.
@jongund I tested the changes you made and the errors have stopped being thrown. Reading the Keyboard Support section, I think the Menu Button table should read, Also, the second bullet for the Enter key function description is missing the period punctuation mark. Thanks for the effort. |
You can prevent the page from jiggling as the user tabs by using |
During a conversation with @Heydon a couple weeks ago we discussed menu buttons as they were working on one for their Inclusive Components project. One question that came up during the conversation was “Isn’t it unintuitive that the links in the menu are announced as menu items?” There’s something to be said for this as the user isn’t informed about what the menu item will do, will it open a new page? Or will it perform an action on the current page? Or will it print out a thousand copies of the current page? Would it make sense to announce them as links? Or perhaps as menu item links (new role, I know…)? We have menuitemradio and menuitemcheckbox, so it would make sense. The flip side to exposing them as links (not menuitemlink) is that it might not be clear that the user is indeed in a menu. I’m not sure if this is indeed an issue, but the community is asking questions :) Perhaps you can shed some light on this @mcking65? |
@MichielBijl Thank you for addressing this. Another concern/question is the example's implementation of Up arrow key to open the menu and move to the last item. This interaction is not defined in the ARIA best practices document. This disconnect could cause author confusion as to whether this is required or not. |
@MichielBijl Thanks for opening this up. I actually talked to @stevefaulkner about the possibility of a With this role, we can expect the announcement of "menuitem link" as one role, needing only one element. What do you and @jared-w-smith think? |
@Heydon You may be referring to item #4 at http://w3c.github.io/aria-practices/#h-note15 or the final column at https://w3c.github.io/html-aria/#index-aria-menuitem In general, I think the W3C examples should model minimally viable mechanisms that follow the specification. It's easy to misinterpret additional enhancements as being required. |
MichielBijl commented:
I am doubtful this is an issue. My inclination: We need to be careful not to try to solve UI design problems with accessibility attributes. If the combination of the name of the menu and the name of the menuitem do not communicate the purpose of the menuitem, then the UI has serious deficiencies for all users. There is a completely different reason for menuitemcheckbox and menuitemradio: they have interactions and states that need to be communicated with ARIA attributes. The interaction model for a menuitem that prints the page is the same as the model for a menuitem that displays new content. |
+1 to @mcking65 |
Modified aria-practices.html per feedback from @jared-w-smith in issue #384 to add optional up arrow key behavior for menubutton: (Optional) <kbd>Up Arrow</kbd>: opens the menu and moves focus to the last menu item.
@Heydon commented:
That is basically correct; since a menuitem is a widget and not a subclass of composite, it cannot contain interactive elements. This is part of the reason that the One of the side effects of this is that screen readers announce only the widget name on focus. There has ben a lot of argument over whether this is ideal. That is, there have been debates over whether menuitem and treeitem should be composite or non-composite, argument over whether all non-composites should have children presentational true, and discussion of how screen readers should parse and render the accessibility tree for non-composite widget elements. |
@jared-w-smith commented:
Jared, thank you for this catch! I fixed it in the @jared-w-smith commented:
In the patterns, we flag features that that the task force agrees are optional. If this approach is causing meaningful difficulties, we certainly want to address it. One other thing that is important to note: the Authoring Practices are not a specification. Nonetheless, it is intended that the practices are authoratative as a result of being based on consensus, expert interpretation of the ARIA specification. So, confusion of the kind you are describing is something we want to minimize. |
Link to CSS file is broken. |
@DavidMacDonald, were you seeing the jiggling issue in the menu button examples? The examples do use border, but using border does not seem to have any negative effects in this case. |
it was giggling for me as I tabbed ... Chrome a few weeks ago, I recommend the use of |
… grammar Made the following changes to examples/menu-button/menu-button-links.html for issue #384. 1. Made grammar change in keyboard table as suggested by @racer2207. 2. Fixed link to css.
…orce review process Removed link to issue #384 from examples/menu-button/menu-button-links.html. The internal task force review is complete for this example.
All issues except for the focus ring, which will be tracked by issue 402, have been addressed. Closing this review issue. |
…key documentation To resolve feedback in issue #382 about examples/menu-button/menu-button-actions.html, made the following changes. 1. Per feedback from @annabbott, Removed documentation of space key behavior. It is optional. It can be restored if appropriate after issue #403 is resolved. 2. Adjusted grammar in keyboard table to be consistent with similar changes made for issue #384 in commit c4d70e8. 3. Per feedback from @annabbott, Fixed href of pattern link in footer.
… remove space key documentation To resolve feedback in issue #383 about examples/menu-button/menu-button-actions-active-descendant.html, made the following changes. 1. Per feedback from @annabbott, Removed documentation of space key behavior. It is optional. It can be restored if appropriate after issue #403 is resolved. 2. Adjusted grammar in keyboard table to be consistent with similar changes made for issue #384 in commit c4d70e8.
The navigation menu button example has been significantly revised and needs additional task force review
Reviews requested as of April 26, 2017
The text was updated successfully, but these errors were encountered: