Skip to content

Commit

Permalink
chore: update dependencies and run prettier (act-rules#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy authored Jun 15, 2020
1 parent 3d9b996 commit 9b7e874
Show file tree
Hide file tree
Showing 3 changed files with 828 additions and 467 deletions.
18 changes: 9 additions & 9 deletions _rules/link-non-empty-accessible-name-c487ae.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ This `a` element has an [accessible name][] via `title`.
This `a` element has an [accessible name][] from its content via the `title` on the `img` element.

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" title="Web Accessibility Initiative" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" title="Web Accessibility Initiative"/></a>
```

#### Passed Example 7
Expand All @@ -138,7 +138,7 @@ This `a` element has an [accessible name][] from its content.
This `a` element has an [accessible name][] from its content via `aria-labelledby` on the `img` element.

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1"/></a>
<div id="id1">Web Accessibility Initiative (WAI)</div>
```

Expand Down Expand Up @@ -180,15 +180,15 @@ This `area` element has a [semantic role][] of `link` and an [accessible name][]
This `a` element has an empty [accessible name][].

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" role="none" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" role="none"/></a>
```

#### Failed Example 2

This `a` element with a decorative image has an empty [accessible name][].

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" alt="" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" alt=""/></a>
```

#### Failed Example 3
Expand All @@ -205,15 +205,15 @@ This `a` element with an icon inserted via font-awesome has an empty [accessible
This `a` element with an `img` with an empty `title` has an empty [accessible name][].

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" title="" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" title=""/></a>
```

#### Failed Example 5

This `a` element with an `img` with an `aria-labelledby` has an empty [accessible name][].

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1"/></a>
<div id="id1"></div>
```

Expand All @@ -222,7 +222,7 @@ This `a` element with an `img` with an `aria-labelledby` has an empty [accessibl
This `a` element with an `img` with an `aria-labelledby` referencing a non-existing id has an empty [accessible name][].

```html
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1" /></a>
<a href="http://www.w3.org/WAI"><img src="/test-assets/shared/w3c-logo.png" aria-labelledby="id1"/></a>
```

#### Failed Example 7
Expand Down Expand Up @@ -280,7 +280,7 @@ This `a` element does not have a [semantic role][] of `link` because it has been
This `a` element is not [included in the accessibility tree][] due to `display: none`.

```html
<a href="http://www.w3.org/WAI" style="display: none;"><img src="/test-assets/shared/w3c-logo.png" /></a>
<a href="http://www.w3.org/WAI" style="display: none;"><img src="/test-assets/shared/w3c-logo.png"/></a>
```

#### Inapplicable Example 3
Expand Down Expand Up @@ -322,4 +322,4 @@ This `a` element does not have the role of link because it does not have an `hre
[focusable]: #focusable 'Definition of focusable'
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'
[presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.1/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution'
[semantic role]: #semantic-role 'Definition of Semantic Role'
[semantic role]: #semantic-role 'Definition of Semantic Role'
Loading

0 comments on commit 9b7e874

Please sign in to comment.