Discussion on: Checkboxes can be excellent buttons

maxart2501 profile image
Massimo Artizzu

I guess you don't even have to declare the role, as they're effectively checkboxes, even if they look like buttons.

codepo8 profile image
Christian Heilmann Author

Correct. This also works for radio buttons, which is even better as when you declare their name the browser/screenreader automatically detects them as a group.