-
Notifications
You must be signed in to change notification settings - Fork 49
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
Review allowed roles for button
#375
Comments
Been mulling this over for awhile, and did some testing with the ARIA practices codepen demo - changing the div to a button. It seems like it might be ok from a quick pass? Kind of nice actually, because then the Testing in Chromium browsers with NVDA, JAWS and Narrator, it seems ok? Would be good to get more robust testing. @ZoeBijl can you give this a spin as well? https://codepen.io/scottohara/pen/LYjoXxX |
The advantage of a button over a div would be that with Windows contrast adjustment, the drop down element would be more recognizable as an interactive element |
Your example does not work in Firefox (JAWS and NVDA). However, this is also true for the original WAI-ARIA Authoring Practices 1.2 example. The cause is a bug in Firefox that
But this does not speak against the suggestion of @ZoeBijl, because once the Firefox bug is fixed, it should work with div and button |
Thanks for the heads up @JAWS-test. Is there presently a bug for this gap in firefox's bug tracker, that you might be aware of? |
Safari and VoiceOver:
But this doesn't mean you shouldn't allow combobox on button either |
thank you |
closes #375 Allows `combobox` role on `button` element. [test case](https://w3c.github.io/html-aria/tests/button-combobox.html)
* allow combobox role on button element * add combobox to input type=button * add role=checkbox to input type=button allowances * update changelog closes #375
With the introduction of a select only combobox (no text input), would it make sense to allow
role=combobox
on<button>
?The text was updated successfully, but these errors were encountered: