-
Notifications
You must be signed in to change notification settings - Fork 304
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
Fix a menuitem labeling omission in the menu pattern #215
Comments
modified the menu pattern section of aria-practices.html. For issue #215, modified states and properties subsection: * Added a statement that parent menuitems contain their submenu. * Added statement that parent menuitems are labeled with aria-label or aria-labelledby. * Simplified aria-haspopup statement to use parent menuitem terminology. For issue #261, modified states and properties subsection: * Added a statement for aria-orientation of menubar. * Added a statement for aria-orientation of menu.
Proposed fix for this issue can be seen in a branch in rawgit at: Changes include:
|
Please review the proposed fix for this issue, which can be seen in a branch in rawgit at: Changes include:
|
See my comment in #261. Under Keyboard interaction > Down arrow > as last bullet: Under Keyboard interaction > Escape |
Ann, for this fix I didn't change the keyboard subsection. I changed only the above mentioned bullets in the states and properties. Nonetheless, to address your specific concern ... @annabbott wrote:
We don't want to say to return focus to a menu. A menu does not receive focus. If it ever receives DOM focus, then it needs to be using aria-activedescendant to place AX focus on a menuitem. There are two ways of opening an ARIA menu:
Note that a menuitem must be in either a menubar or a parent menu. |
ok |
Modify the 2nd change to the following: |
@jnurthen, good catch about aria-owns. I didn't realize the name calculation treated owned elements differently from contained elements when naming from content. You're 100% sure on this? I wonder if the browser tests for name calculation test for this. |
I have always thought this was the way it was but we should probably do a
little test case to check. I won't be able to do it this weekend though.
aria-owns is not mentioned at all in the accessible name calculation. All
the definitions of nodes in the accessible name calculation are DOM nodes,
so my assumption is that child nodes means child DOM nodes - but it could
do with being clarified.
…On Sat, 4 Feb 2017 at 07:24 Matt King ***@***.***> wrote:
@jnurthen <https://github.com/jnurthen>, good catch about aria-owns. I
didn't realize the name calculation treated owned elements differently from
contained elements when naming from content. You're 100% sure on this? I
wonder if the browser tests for name calculation test for this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#215 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABpQP4Up2R-BvB3Cj47QtMcFIlUhOVqCks5rZJgYgaJpZM4LLDSA>
.
|
This issue depends on issue #277. |
I am going to merge these changes and close this issue. If the outcome of issue #277 calls for more changes, thenI will make them at that time. |
modified the menu pattern section of aria-practices.html. For issue #215, modified states and properties subsection: * Added a statement that parent menuitems contain their submenu. * Added statement that parent menuitems are labeled with aria-label or aria-labelledby. * Simplified aria-haspopup statement to use parent menuitem terminology. For issue #261, modified states and properties subsection: * Added a statement for aria-orientation of menubar. * Added a statement for aria-orientation of menu.
Changes merged. Note that I made an error in the title of commit cbe304b. It says it is for issues 2155 and 266. It should say it is for issues 215 and 261. Sorry about that. |
NOTE: This was later pointed out to be incorrect and reversed in issue #395.
If a menuitem element contains or owns a child menu and its menuitems, then the menuitem needs either aria-label or aria-labelledby similar to what is described for treeitems. This is not covered in the roles, states, and properties section of the menu design pattern.
The editor menubar example demonstrates this situation.
The text was updated successfully, but these errors were encountered: