Skip to content
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

Remove aria-haspopup from dropdowns #33624

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Conversation

patrickhlauke
Copy link
Member

@patrickhlauke patrickhlauke commented Apr 13, 2021

aria-haspopup="true" is really intended to signal that an ARIA menu will be opened on activation. as a result, some assistive technologies will announce controls with aria-haspopup="true" as a menu or menu item (e.g. JAWS and NVDA).
In addition, aria-haspopup seems to trigger a bug in Edge/Narrator where the aria-expanded state is not correctly announced at the moment when aria-haspopup is present.
This now makes the dropdown button more like a generic disclosure widget control - see also https://www.w3.org/TR/wai-aria-practices-1.2/examples/disclosure/disclosure-navigation.html01

Closes #33528

(Note this was already done at some early point in v5, with no adverse effect. As this only really affects the documentation/examples/tests, not the actual code, this is a non-breaking change)

`aria-haspopup="true"` is really intended to signal that an ARIA `menu` will be opened on activation. as a result, some assistive technologies will announce controls with `aria-haspopup="true"` as a menu or menu item (e.g. JAWS and NVDA).
In addition, `aria-haspopup` seems to trigger a bug in Edge/Narrator where the `aria-expanded` state is not correctly announced at the moment when `aria-haspopup` is present.
This now makes the dropdown button more like a generic disclosure widget control - see also https://www.w3.org/TR/wai-aria-practices-1.2/examples/disclosure/disclosure-navigation.html01
@XhmikosR XhmikosR merged commit d967553 into v4-dev Apr 15, 2021
@XhmikosR XhmikosR deleted the patrickhlauke-v4-aria-haspopup branch April 15, 2021 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants