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

fix(rule): Remove coverage of svg[role="img"] for image-alt rule #683

Merged
merged 1 commit into from
Feb 1, 2018

Conversation

codingmatty
Copy link
Contributor

We have been advised that best practice is to use the following for inline SVGs:

<svg role="img">
  <title>SVG Title</title>
</svg>

which is echoed in this article.

I see that there is conversation in this issue #20 about how to best go about it, but for now the test for svg[role="img"] needs to be removed since it isn't really valid.

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2018

CLA assistant check
All committers have signed the CLA.

@@ -16,3 +16,4 @@
<img src="img.jpg" id="pass8" aria-labelledby="ninjamonkeys">
<div role="img" alt="blah" id="violation6"></div>
<div role="img" aria-label="blah" id="pass9"></div>
<svg rol="img" id="ignore1"><title>SVG Title</title></svg>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the attribute

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the typo. I think you're right about excluding svg from this rule. We should have a separate SVG rule instead.

We have been advised that best practice is to use the following for inline SVGs:
```
<svg role="img">
  <title>SVG Title</title>
</svg>
```
which is echoed in [this article](https://css-tricks.com/accessible-svgs/#article-header-id-6).

I see that there is conversation in this issue dequelabs#20 about how to best go about it, but for now the test for `svg[role="img"]` needs to be removed since it isn't really valid.
@WilcoFiers WilcoFiers merged commit 0fe74d8 into dequelabs:develop Feb 1, 2018
@codingmatty codingmatty deleted the svg-img-no-alt branch February 22, 2018 23:19
mrtnvh pushed a commit to mrtnvh/axe-core that referenced this pull request Nov 24, 2023
…equelabs#683)

The timeout was decreased in 6f5498e
to 20 seconds (apparently accidentally since that commit was classfied
as a refactor ... and it also didn't update the --help text accordingly).

This commit changes it back to 90 seconds to match the --help text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants