Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SVG style fails this rule: Accessible name does not match or contain the visible label text #411

Open
1 of 6 tasks
francesco-mariani opened this issue Apr 29, 2021 · 2 comments
Labels
Bug Something isn't working engine Issues in the accessibility-checker-engine component priority-2 (med) user-reported Issues identified outside of the core team

Comments

@francesco-mariani
Copy link

SVG style fails this rule: Accessible name does not match or contain the visible label text

What tool(s) are you using?

  • accessibility-checker-engine
  • accessibility-checker
  • karma-accessibility-checker
  • rule-server
  • boilerplates
  • other

Detailed description

Accessibility Checker gives this violation

Accessible name does not match or contain the visible label text

against

<button aria-label="text" type="button">
    <svg alt="text" focusable="false">
        <defs><style>.cls-1{fill:none;}</style></defs>
        <rect class="cls-1" width="32" height="32"></rect>
        <title>text</title>
    </svg>
</button>

due to the presence of .cls-1{fill:none;} inside the defs tag.

@francesco-mariani francesco-mariani added the Bug Something isn't working label Apr 29, 2021
@tombrunet tombrunet changed the title [BUG] [BUG] SVG style fails this rule: Accessible name does not match or contain the visible label text May 5, 2021
@tombrunet
Copy link
Member

@marcjohlic marcjohlic added the engine Issues in the accessibility-checker-engine component label Dec 6, 2021
@MHoov MHoov added the user-reported Issues identified outside of the core team label May 13, 2024
@philljenkins
Copy link
Contributor

Work in #2055 may close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working engine Issues in the accessibility-checker-engine component priority-2 (med) user-reported Issues identified outside of the core team
Projects
None yet
Development

No branches or pull requests

5 participants