Skip to content

Commit 589ed44

Browse files
Added aria-label to the role="dialog" element (#2240)
1 parent fbf3d49 commit 589ed44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_rules/aria-attr-defined-5f99a7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This `article` element has an `aria-atomic` attribute which is defined in [WAI-A
6565
This `div` element with a role of `dialog` has an `aria-modal` attribute which is defined in [WAI-ARIA Specifications][].
6666

6767
```html
68-
<div role="dialog" aria-modal="true">Contains modal content...</div>
68+
<div role="dialog" aria-modal="true" aria-label="Modal title">Contains modal content...</div>
6969
```
7070

7171
#### Passed Example 3

0 commit comments

Comments
 (0)