Skip to content

Commit

Permalink
Use a instead of div role="link" in examples of "Visible label is…
Browse files Browse the repository at this point in the history
… part of accessible name" (2ee8b8) (#1194)

* Use native semantic elements in examples
  • Loading branch information
Jym77 committed Mar 9, 2020
1 parent a9bd4a1 commit 2ce569d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _rules/visible-label-in-accessible-name-2ee8b8.md 100644 → 100755
Expand Up @@ -57,15 +57,15 @@ There are no major accessibility support issues known for this rule.
[Visible][] label and [accessible name][] matches when trailing white spaces are removed.

```html
<div role="link" aria-label="next page ">next page</div>
<a href="https://act-rules.github.io/" aria-label="ACT rules ">ACT rules</a>
```

#### Passed Example 2

Character insensitivity between [visible][] label and [accessible name][].

```html
<div role="link" aria-label="Next Page">next page</div>
<a href="https://act-rules.github.io/" aria-label="act rules ">ACT rules</a>
```

#### Passed Example 3
Expand All @@ -83,7 +83,7 @@ Full [visible][] label is contained in the [accessible name][].
[Visible][] label doesn't match [accessible name][].

```html
<div role="link" aria-label="OK">Next</div>
<a href="https://act-rules.github.io/" aria-label="WCAG">ACT rules</a>
```

#### Failed Example 2
Expand Down

0 comments on commit 2ce569d

Please sign in to comment.