Skip to content

Commit

Permalink
docs(errors): no-aria-label ignores decorative SVG with aria-hidden="…
Browse files Browse the repository at this point in the history
…true"
  • Loading branch information
PhilippeVay committed Jul 29, 2023
1 parent e9f8938 commit a2f0a58
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions docs/advices.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540717">
<link rel="stylesheet" href="./static/docs.css?v=1690620346319">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_advices-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -692,6 +692,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1688670540722"></script>
<script src="./static/docs.js?v=1690620346336"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540725">
<link rel="stylesheet" href="./static/docs.css?v=1690620346342">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -1165,6 +1165,6 @@ <h5>References</h5>
</div>
</footer>

<script src="./static/docs.js?v=1688670540726"></script>
<script src="./static/docs.js?v=1690620346343"></script>
</body>
</html>
10 changes: 5 additions & 5 deletions docs/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540722">
<link rel="stylesheet" href="./static/docs.css?v=1690620346337">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_errors-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -325,7 +325,7 @@ <h3>Test</h3>
<article>
<h2 id="no-aria-label">Missing label for [role=img]</h2>
<h3>Description</h3>
<p><code>[role=img]</code> should either have <code>[aria-label]</code> or <code>[aria-labelledby]</code>.
<p><code>[role=img]</code> without <code>[aria-hidden=true]</code> should either have <code>[aria-label]</code> or <code>[aria-labelledby]</code>.
If image is decorative, please use <code>[role=presentation]</code> instead.</p>
<h3>References</h3>
<ul>
Expand All @@ -335,8 +335,8 @@ <h3>References</h3>
<li><a href="https://www.w3.org/TR/wai-aria-1.2/#presentation">https://www.w3.org/TR/wai-aria-1.2/#presentation</a></li>
</ul>
<h3>Selector</h3>
<div class="pre"><pre><code class="css language-css" data-language="CSS">[role=<span class="token string">"img"</span>]<span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-label]<span class="token punctuation">,</span> [aria-labelledby]<span class="token punctuation">)</span><span class="token punctuation">,</span>
svg[role=<span class="token string">"img"</span>]<span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-label]<span class="token punctuation">,</span> [aria-labelledby]<span class="token punctuation">)</span>
<div class="pre"><pre><code class="css language-css" data-language="CSS">[role=<span class="token string">"img"</span>]<span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-hidden=<span class="token string">"true"</span>]<span class="token punctuation">)</span><span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-label]<span class="token punctuation">,</span> [aria-labelledby]<span class="token punctuation">)</span><span class="token punctuation">,</span>
svg[role=<span class="token string">"img"</span>]<span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-hidden=<span class="token string">"true"</span>]<span class="token punctuation">)</span><span class="token punctuation">:</span><span class="token function">not</span><span class="token punctuation">(</span>[aria-label]<span class="token punctuation">,</span> [aria-labelledby]<span class="token punctuation">)</span>
</code></pre></div>
<h3>Test</h3>
<div class="pre"><div><svg width="12cm" height="4cm" viewBox="0 0 1200 400"
Expand Down Expand Up @@ -1397,6 +1397,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1688670540723"></script>
<script src="./static/docs.js?v=1690620346338"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540741">
<link rel="stylesheet" href="./static/docs.css?v=1690620346396">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
</head>
Expand Down Expand Up @@ -153,6 +153,6 @@ <h2>Contribution</h2>
</div>
</footer>

<script src="./static/docs.js?v=1688670540741"></script>
<script src="./static/docs.js?v=1690620346396"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/obsoletes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540723">
<link rel="stylesheet" href="./static/docs.css?v=1690620346339">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_obsoletes-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -276,6 +276,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1688670540724"></script>
<script src="./static/docs.js?v=1690620346339"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/static/css/a11y-en_errors-only.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/static/docs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/warnings.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540724">
<link rel="stylesheet" href="./static/docs.css?v=1690620346339">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_warnings-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -1402,6 +1402,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1688670540724"></script>
<script src="./static/docs.js?v=1690620346340"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/webextension.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1688670540724">
<link rel="stylesheet" href="./static/docs.css?v=1690620346341">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -226,6 +226,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1688670540725"></script>
<script src="./static/docs.js?v=1690620346341"></script>
</body>
</html>

0 comments on commit a2f0a58

Please sign in to comment.