w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 48 forks source link

Update allowances for button and input type=button #218

Closed scottaohara closed 3 years ago

scottaohara commented 4 years ago

Consider allowing a checkbox role on buttons.

Though hopefully unnecessary for authors, it does seem within reason since button does allow role=switch.

masi commented 3 years ago

Isn't the difference that there is no HTML equivalent for switch. but there is for checkbox? OTOH, a custom single checkbox widget may be easier to implement with a HTML button than anything else.