-
Notifications
You must be signed in to change notification settings - Fork 70
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
Consider to remove aria-haspopup #30
Comments
@afercia Thanks a lot for such a thorough research! Out of interest, I checked what other popular websites do, and found that:
I wonder why Google decided to implement it this way. Any ideas? |
@moroshko honestly I have no idea 🙂 My only (wild) guess is maybe some years ago the whole combobox pattern wasn't supported so well and adding an For sure, it's not a state: it's a property and its value shouldn't change. Worth noting in the new ARIA 1.1 (still a Candidate Recommendation) things are a bit different and aria-haspopup will have some new values including "listbox". However, a combobox already has an implicit aria-haspopup property so it shouldn't be explicitly set, see:
|
@afercia Cool, let's remove |
@moroshko Hi! |
yeah |
Done. |
Hello. Happy to see you're focusing in developing accessible components. Thanks for this 🙂
I'm not sure aria-haspopup is used properly though.
aria-haspopup
is a property, not a state. It's meant to indicate if an element has a popup that appears on some user activation, regardless of the popup visibility. In other words, when there's a popup, it should always betrue
even when the popup is not displayed. Worth nothing with ARIA 1.1 (still a Candidate Recommendation), things will change a bit and there will be more values available.Additionally, unless I'm missing something, worth considering a combobox shouldn't have an
aria-haspopup
property at all. Unfortunately, the related section on the ARIA Authoring Practices is under some re-work https://www.w3.org/TR/wai-aria-practices/#combobox and they point to the related GitHub issue: w3c/aria-practices#31From there, you can refer to the sections that were temporarily removed (https://rawgit.com/w3c/aria-practices/master/aria-practices-DeletedSectionsArchive.html#combobox) and also to the section with general considerations about popups and drop-downs:
5.4 Popups and drop-downs
https://rawgit.com/w3c/aria-practices/master/aria-practices-DeletedSectionsArchive.html#relations_haspopup
where it's clearly stated:
The text was updated successfully, but these errors were encountered: