Skip to content

Commit 8321747

Browse files
committed
Visual/manual test for checkbox/radio button kbd behavior
1 parent 9e57584 commit 8321747

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/tests/visual/button.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ <h1>Button <small>Bootstrap Visual Test</small></h1>
1717

1818
<button type="button" class="btn btn-primary" data-toggle="button">Single toggle</button>
1919

20+
<p>For checkboxes and radio buttons, ensure that keyboard behavior is functioning correctly.</p>
21+
<p>Navigate to the checkboxes with the keyboard (generally, using <kbd>TAB</kbd> / <kbd>SHIFT + TAB</kbd>), and ensure that <kbd>SPACE</kbd> toggles the currently focused checkbox. Click on one of the checkboxes using the mouse, ensure that focus was correctly set on the actual checkbox, and that <kbd>SPACE</kbd> toggles the checkbox again.</p>
22+
2023
<div class="btn-group" data-toggle="buttons">
2124
<label class="btn btn-primary">
2225
<input type="checkbox"> checkbox 1
@@ -29,6 +32,8 @@ <h1>Button <small>Bootstrap Visual Test</small></h1>
2932
</label>
3033
</div>
3134

35+
<p>Navigate to the radio button group with the keyboard (generally, using <kbd>TAB</kbd> / <kbd>SHIFT + TAB</kbd>). If no radio button was initially set to be selected, the first/last radio button should receive focus (depending on whether you navigated "forward" to the group with <kbd>TAB</kbd> or "backwards" using <kbd>SHIFT + TAB</kbd>). If a radio button was already selected, navigating with the keyboard should set focus to that particular radio button. Only one radio button in a group should receive focus at any given time. Ensure that the selected radio button can be changed by using the <kbd></kbd> and <kbd></kbd> arrow keys. Click on one of the radio buttons with the mouse, ensure that focus was correctly set on the actual radio button, and that <kbd></kbd> and <kbd></kbd> change the selected radio button again.</p>
36+
3237
<div class="btn-group" data-toggle="buttons">
3338
<label class="btn btn-primary">
3439
<input type="radio" name="options" id="option1"> Radio 1

0 commit comments

Comments
 (0)