Skip to content

Commit 26a9dd0

Browse files
Update aria-required-accessible-name-gp8n89.md
1 parent 5968b5c commit 26a9dd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_rules/aria-required-accessible-name-gp8n89.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ The `div` element with role `img` has an [accessible name][] provided by the `ar
9393
The `div` element with role `checkbox` has an [accessible name][] provided thanks to the `aria-labelledby` attribute.
9494

9595
```html
96-
<div role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="passed-example-3"></div>
97-
<div id="passed-example-3">I agree with terms and conditions</div>
96+
<div role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="pass-agree-tc"></div>
97+
<div id="pass-agree-tc">I agree with terms and conditions</div>
9898
```
9999

100100
#### Passed Example 4
101101

102102
The `div` element with role `dialog` has an [accessible name][] provided by the `aria-labelledby` attribute.
103103

104104
```html
105-
<div role="dialog" aria-modal="true" tabindex="-1" aria-labelledby="passed-example-4">
106-
<h1 id="passed-example-4">Terms</h1>
105+
<div role="dialog" aria-modal="true" tabindex="-1" aria-labelledby="pass-terms">
106+
<h1 id="pass-terms">Terms</h1>
107107
<p>These are our terms.</p>
108108
</div>
109109
```
@@ -185,8 +185,8 @@ The `div` element with role `heading` has an empty [accessible name][] due to th
185185
The `div` element with role `heading` has an empty [accessible name][] given by its `aria-labelledby` attribute.
186186

187187
```html
188-
<span id="failed-example-3"></span>
189-
<div role="heading" aria-level="1" aria-labelledby="failed-example-3">ACT Rules</div>
188+
<span id="fail-heading"></span>
189+
<div role="heading" aria-level="1" aria-labelledby="fail-heading">ACT Rules</div>
190190
```
191191

192192
#### Failed Example 7

0 commit comments

Comments
 (0)