switch
switch copied to clipboard
Button without text or aria label violates Axe rule
Critical rule violated by component:
https://dequeuniversity.com/rules/axe/3.4/button-name?application=axeAPI
I believe this introduced by this #26 in response to #22
Hi @MarkPare , I'm the author of the PR. I took a quick glance over this rule, and I'm not sure it's valid in case of role="switch". It essentially the same as a simple checkbox: a combination of role="checkbox" (switch) and checked attribute (aria-checked), plus a label explaining what it is somewhere outside. I'm not an a11y expert, but it seems to that this rule should take role="switch" and role="checkbox" into consideration