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
* Update a1b64e Pass 2 to add role
* Add a support note for issue 1909 regarding cycle to browser
* Add a passing modal example
* Fix spacing
* Fix spacing
---------
Co-authored-by: Carlos Duarte <[email protected]>
Copy file name to clipboardexpand all lines: _rules/focusable-no-keyboard-trap-non-standard-nav-ebe86a.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ For each target element focus can cycle to the browser UI by using the method ad
51
51
52
52
### Accessibility Support
53
53
54
-
There are no accessibility support issues known.
54
+
Some browsers have settings that will immediately cycle focus back to the web document. This fulfills the expectation because focus can cycle to the browser UI and the browser UI cycles focus back to the web document.
Copy file name to clipboardexpand all lines: _rules/focusable-no-keyboard-trap-standard-nav-a1b64e.md
+51-2
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ acknowledgments:
18
18
- Malin Øvrebø
19
19
- Shadi Abou-Zahra
20
20
- Stein Erik Skotkjerra
21
+
- Tom Brunet
21
22
funding:
22
23
- WAI-Tools
23
24
---
@@ -43,7 +44,7 @@ This rule only requires navigation in one direction (either forward or backward)
43
44
44
45
### Accessibility Support
45
46
46
-
There are no accessibility support issues known.
47
+
Some browsers have settings that will immediately cycle focus back to the web document. This fulfills the expectation because focus can cycle to the browser UI and the browser UI cycles focus back to the web document.
47
48
48
49
### Bibliography
49
50
@@ -68,7 +69,7 @@ These [focusable][] elements do not create a trap for keyboard navigation.
68
69
This element is made [focusable][] by the `tabindex` attribute. It does not create a trap for keyboard navigation.
69
70
70
71
```html
71
-
<divtabindex="1">Text</div>
72
+
<divrole="button"tabindex="1">Text</div>
72
73
```
73
74
74
75
#### Passed Example 3
@@ -79,6 +80,54 @@ This element is made [focusable][] by the `tabindex` attribute, even if it is no
79
80
<divtabindex="-1">Text</div>
80
81
```
81
82
83
+
#### Passed Example 4
84
+
85
+
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
86
+
use [standard keyboard navigation](#standard-keyboard-navigation) using the Escape key or by activating the "Close button" to dismiss the modal
87
+
88
+
```html
89
+
<div>Main page content with <ahref="#">some link</a></div>
0 commit comments