Skip to content

Commit f6eb37c

Browse files
Update _rules/aria-required-accessible-name-gp8n89.md
1 parent 3d63827 commit f6eb37c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ The `dialog` role accepts an [accessible name][] only from the author and not fr
192192

193193
#### Failed Example 6
194194

195-
The `div` element with role `heading` has an empty [accessible name][] due to the empty `aria-label` [attribute value][].
195+
The `div` element with role `heading` has an empty [accessible name][] due to the `display: none` CSS property set to its content.
196196

197197
```html
198-
<div role="heading" aria-level="1" aria-label="">Terms</div>
198+
<div role="heading" aria-level="1"><span style="display: none">Terms</span></div>
199199
```
200200

201201
#### Failed Example 7

0 commit comments

Comments
 (0)