-
Notifications
You must be signed in to change notification settings - Fork 83
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
ARIA in HTML update for summary element allowances #1301
Comments
From Triage meeting: |
Triage: We need to add to our rule to make sure if |
well, only the first summary. any summary after the first within a details would also allow any role, as browsers do not treat those as interactive elements anymore. |
Pushed |
ARIA in HTML is updating to clarify the ARIA attribute allowances for the summary element:
The summary currently allows no role, and any global aria-* attributes, and any aria-* attributes applicable to the button role.
The update changes this to indicate that no role is allowed so long as the summary element serves as the summary for its parent details element. However, Any role will be allowed on the element if it does not meet this requirement.
For instance, the following would continue to disallow any role from developers, as applying roles can cause AT to no longer correctly expose the current state of the disclosure widget:
But the following examples demonstrate where any role may be applied to the summary element, as it does not meet HTML's conditions to be considered the summary for its parent details.
As the summary element is not consistently exposed as a button by all browsers, AND not all of the allowed ARIA attributes for button element even work on this element, the allowed attributes have been modified to reflect this.
If the summary element acts as the summary for its parent details, then global aria attributes and the aria-haspopup and aria-disabled attribute may be specified. Note that aria-expanded and aria-pressed are the attributes no longer allowed, and per testing, these attributes were not respected anyway.
If the summary element is not the summary for its parent details, then any global aria attributes and any attribute applicable to the allowed specified role may be used.
Additional examples and test cases can be viewed here:
The text was updated successfully, but these errors were encountered: