Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions _rules/focusable-no-keyboard-trap-80af7b.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,6 @@ This [focusable][] element creates a keyboard trap bringing focus to the `button

#### Failed Example 2

These [focusable][] `button` elements create a keyboard trap preventing the last `button` to be reached using the keyboard.
Comment thread
giacomo-petri marked this conversation as resolved.

```html
<button onblur="setTimeout(() => this.nextElementSibling.focus(), 10)">
Button1
</button>
<button onblur="setTimeout(() => this.previousElementSibling.focus(), 10)">
Button2
</button>
<button>
Button3
</button>
```

#### Failed Example 3

This `button` element is between other `button` elements creating a keyboard trap.

```html
Expand All @@ -188,7 +172,7 @@ This `button` element is between other `button` elements creating a keyboard tra
<button onblur="setTimeout(() => this.focus(), 10)">Button 3</button>
```

#### Failed Example 4
#### Failed Example 3

These focusable `button` elements create a keyboard trap with no instructions.

Expand All @@ -205,7 +189,7 @@ These focusable `button` elements create a keyboard trap with no instructions.
<a id="link2" href="#">Link 2</a>
```

#### Failed Example 5
#### Failed Example 4

These focusable `button` elements create a keyboard trap with instructions that don't give advice on the method for proceeding.

Expand All @@ -223,7 +207,7 @@ These focusable `button` elements create a keyboard trap with instructions that
<a id="link2" href="#">Link 2</a>
```

#### Failed Example 6
#### Failed Example 5

These focusable `button` elements create a keyboard trap with help text, where the method advised doesn't work.

Expand Down