switch icon indicating copy to clipboard operation
switch copied to clipboard

Button without text or aria label violates Axe rule

Open MarkPare opened this issue 6 years ago • 1 comments

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

MarkPare avatar Dec 11 '19 20:12 MarkPare

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

saitonakamura avatar May 17 '20 10:05 saitonakamura