Skip to content

Button without text or aria label violates Axe rule #45

Open

Description

@MarkPare

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

Activity

  1. saitonakamura commented on May 17, 2020

    @saitonakamura
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions