ARIA in HTML update for role allowances for button/input button elements #1304
Labels
engine
Issues in the accessibility-checker-engine component
priority-3 (low)
Ready for QA
Standards
user-reported
Issues identified outside of the core team
ARIA in HTML (w3c/html-aria#446) is updating the role allowances for the
button
element, as well asinput type=button, image, reset, submit
. ARIA in HTML spec update preview.This update serves two purposes:
treeitem
,gridcell
andslider
. Each of these roles - if implemented correctly - can work just fine with the button element. Other potential accessibility gaps due to author implementation may be found via other existing automated or manual checks.The full list of allowed roles for these elements now would be:
checkbox, combobox, gridcell, link, menuitem, menuitemcheckbox, menuitemradio, option, radio, slider, switch, tab, or treeitem. (button is also allowed, but NOT RECOMMENDED.)
The expectation here would be that all the allowed roles would no longer be exposed as errors or warnings.
For the input types (image, reset, submit) where roles are allowed but NOT RECOMMENDED, a warning message indicating that a more malleable HTML element, such as a
<button>
or<div>
may be more appropriate to ease the development of the custom feature.Test cases - button and input type=button tests and
input type=reset, image, submit tests
The text was updated successfully, but these errors were encountered: