-
Notifications
You must be signed in to change notification settings - Fork 344
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
The tab role does not specify how it should be associated with the popup menu described in the Tabs pattern 3.24 #2247
Comments
Do you mind clarifying? Why can't |
I’m also curious about the |
aria-controls is ignored by most screen readers https://a11ysupport.io/tech/aria/aria-controls_attribute. For example, JAWS has made a conscious decision to stop outputting aria-controls because it leads to unnecessary output |
@JAWS-test is there a way you can still get at that information in JAWS? |
@ZoeBijl To my knowledge there is no way to enable the output of aria-controls. See w3c/aria#995 |
Here is where I see the use of https://w3c.github.io/aria/#tab
Therefore |
Nice catch @jjaeggli. I agree that this is an issue. I wonder why multi-select tabs use |
What if we resolved this by recommending that that any tab with a context menu also have a visible menu button adjacent to the tab? That menu could be accessible by either using shift+f10 while focus is on the tab or by activating the menu button. There is actually a problem with the shift+f10 approach; it requires hijacking the browser menu or overriding it completely. Neither option is very good. So, perhaps, we should not even suggest using shift+f10? I know that including a menu button as a descendant of a tablist is not explicitly supported by the ARIA spec. It is also not explicitly prohibited either. I believe we have a few issues open in ARIA related to this. In practice, it does work with both browsers and AT. |
Issues related to allowed children in composites:
Still looking for issue directly related to allowing menubuttons in tablists. |
Could be resolved by: As well as by allowing buttons inside of tablists. |
The tabs pattern (https://w3c.github.io/aria-practices/#tabpanel) indicates that a popup menu, if present, can be activated via SHIFT + F10.
In other cases where a popup menu is associated with a control
aria-controls
would be used to indicate that the control is associated with the menu element. However, in this casearia-controls
for the tab is associated with the tabpanel.aria-expanded
also has separate connotations from other popup-controlling elements, and therefore cannot be used to indicate whether the popup menu is open or visible.The use of a popup or controls such as delete on a tab is a common pattern, as indicated by the document the possibility of including the delete option in the menu:
As such the tab role should support the inclusion of a menu control on the tab so that the state of the menu can be understood. However, currently the
tab
role ischild-presentational
. Focusable children should be focusable according to presentational conflict resolution rules: https://w3c.github.io/aria/#conflict_resolution_presentation_none however the state of the menu of any associated focusable child will not be conveyed (or at least the behavior by the SR is unspecified).In order to convey the state of the popup menu, a
tab
role should allow a child element which is a control of menu and provide popup menu semantics which are conveyed to the tab parent element. Additionally, these controls should be focusable by keyboard-only users.Example:
https://codepen.io/zelliottm/pen/YzEJdrj
The text was updated successfully, but these errors were encountered: