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
Dialog Pattern: Clarify Description of Focus Movement
I was reminded that some focusable elements are not in the tab sequence so the description of the keyboard behavior is not clear because it says that tab moves focus to next focusable element.
So, for issue #325, made the following changes.
Added the following paragraph to the beginning of the keyboard subsection:
> In the following description, the term “tabbable element” refers to any element with a tabindex value of zero or greater.
> Note that values greater than 0 are strongly discouraged.
Added the following to the keyboard interaction description as the first item in the list:
> When a dialog opens, focus moves to an element inside the dialog. See notes below regarding initial focus placement.
In the subsequent bullet items in the keyboard description, replaced the word "focusable" with "tabbable".
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
@@ -511,17 +511,19 @@ <h3>Dialog (Modal)</h3>
511
511
</p>
512
512
<sectionclass="notoc">
513
513
<h4>Keyboard Interaction</h4>
514
+
<p>In the following description, the term <q>tabbable element</q> refers to any element with a <code>tabindex</code> value of zero or greater. Note that values greater than 0 are strongly discouraged.</p>
514
515
<ul>
516
+
<li>When a dialog opens, focus moves to an element inside the dialog. See notes below regarding initial focus placement.</li>
515
517
<li><kbd>Tab</kbd>:
516
518
<ul>
517
-
<li>Moves focus to the next focusable element inside the dialog.</li>
518
-
<li>If focus is on the last element, moves focus to the first focusable element inside the dialog. </li>
519
+
<li>Moves focus to the next tabbable element inside the dialog.</li>
520
+
<li>If focus is on the last tabbable element inside the dialog, moves focus to the first tabbable element inside the dialog. </li>
519
521
</ul>
520
522
</li>
521
523
<li><kbd>Shift + Tab</kbd>:
522
524
<ul>
523
-
<li>Moves focus to the previous focusable element inside the dialog.</li>
524
-
<li>If focus is on the first element, moves focus to the last focusable element inside the dialog.</li>
525
+
<li>Moves focus to the previous tabbable element inside the dialog.</li>
526
+
<li>If focus is on the first tabbable element inside the dialog, moves focus to the last tabbable element inside the dialog.</li>
0 commit comments