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: _rules/focusable-no-keyboard-trap-standard-nav-a1b64e.md
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,54 @@ This element is made [focusable][] by the `tabindex` attribute, even if it is no
79
79
<divtabindex="-1">Text</div>
80
80
```
81
81
82
+
#### Passed Example 4
83
+
84
+
While the elements with id "sentinelBefore" and "sentinelAfter" contain focus to the contents of the div with name "Sample Modal", focus is not trapped since the user can
85
+
use [standard keyboard navigation](#standard-keyboard-navigation) using the Escape key or by activating the "Close button" to dismiss the modal
86
+
87
+
```html
88
+
<div>Main page content with <ahref="#">some link</a></div>
0 commit comments