You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aria-practices.html
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -502,6 +502,8 @@ <h3>Dialog (Modal)</h3>
502
502
That is, <kbd>Tab</kbd> and <kbd>Shift + Tab</kbd> do not move focus outside the dialog.
503
503
However, unlike most non-modal dialogs, modal dialogs do not provide means for moving keyboard focus outside the dialog window without closing the dialog.
504
504
</p>
505
+
<p>For all dialogs, all controls required to operate the dialog are child nodes of the element which has role set to dialog.
506
+
</p>
505
507
<p>
506
508
The <ahref="#alertdialog" class="role-reference">alertdialog</a> role is a special-case dialog role
507
509
designed specifically for dialogs that divert users' attention to a brief, important message.
@@ -569,11 +571,11 @@ <h4>WAI-ARIA Roles, States, and Properties</h4>
569
571
Specifying descriptive elements enables screen readers to announce the description along with the dialog title and initially focused element when the dialog opens.
570
572
</li>
571
573
<li>
572
-
With the addition of<ahref="#aria-modal" class="property-reference">aria-modal</a> set to true, where content outside the dialog is completely inert
574
+
If the dialog has<ahref="#aria-modal" class="property-reference">aria-modal</a> set to <code>true</code>and content outside the dialog is completely inert
573
575
and visually obscured to an extent that is intentionally unreadable, it is no longer necessary to set <ahref="#aria-hidden" class="state-reference">aria-hidden</a>
574
-
to <code>true</code> on each element containing a portion of the inert layer,
575
-
If you do still use <code>aria-hidden</code> set to <code>true</code> the dialog container element cannot be a descendant
576
-
of an element that has <code>aria-hidden</code> set to <code>true</code> and the content outside the modal dialog must not be visually discernable.
576
+
to <code>true</code> on each element containing a portion of the inert layer.
577
+
However, if you do still use <code>aria-hidden</code> set to <code>true</code>, the dialog container element cannot be a descendant
578
+
of any element that has <code>aria-hidden</code> set to <code>true</code> and the content outside the modal dialog must not be visually discernable.
0 commit comments