Skip to content

Commit

Permalink
Allow comboboxes to invoke menus
Browse files Browse the repository at this point in the history
closes #2050

This PR simply adds `menu` to the paragraph of text that indicates what value needs to be used for the aria-haspopup attribute, if the popup is not a listbox:

>authors MUST specify an aria-haspopup value of tree, grid, or dialog that corresponds to the role of its popup.

I think some additional text could be written in the `menu` role definition to further acknowledge this new allowance.  But I'll leave that open for discussion, rather than immediately start adding such text.
  • Loading branch information
scottaohara authored Jan 29, 2025
1 parent a2d34fe commit 56a823e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ <h2>Definition of Roles</h2>
Authors MUST set <sref>aria-expanded</sref> to <code>true</code> on an element with role <code>combobox</code> when it is expanded and <code>false</code> when it is collapsed.
</p>
<p>
Elements with the role <code>combobox</code> have an implicit <pref>aria-haspopup</pref> value of <code>listbox</code>. If the <code>combobox</code> popup element has a role other than <rref>listbox</rref>, authors MUST specify an <pref>aria-haspopup</pref> value of <rref>tree</rref>, <rref>grid</rref>, or <rref>dialog</rref> that corresponds to the role of its popup.
Elements with the role <code>combobox</code> have an implicit <pref>aria-haspopup</pref> value of <code>listbox</code>. If the <code>combobox</code> popup element has a role other than <rref>listbox</rref>, authors MUST specify an <pref>aria-haspopup</pref> value of <rref>tree</rref>, <rref>grid</rref>, <rref>menu</rref> or <rref>dialog</rref> that corresponds to the role of its popup.
</p>
<p>
If the user interface includes an additional icon that allows the visibility of the popup to be controlled via pointer and touch events, authors SHOULD ensure that element has role <rref>button</rref>, that it is focusable but not included in the page <kbd>Tab</kbd> sequence, and that it is not a descendant of the element with role <code>combobox</code>.
Expand Down

0 comments on commit 56a823e

Please sign in to comment.