diff options
| author | Patrick H. Lauke <[email protected]> | 2016-02-16 22:15:46 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2016-02-16 22:15:46 +0000 |
| commit | a42875afe75e172f332f71ee71f902fbe5ac5f88 (patch) | |
| tree | e3785e07465046c844dd974b9f4e58ede3e23e92 | |
| parent | ad1e98d094468279da541de6b695681b169da8b3 (diff) | |
| parent | eabdad720855b50cfe8778c3165d104a7b7eb5d7 (diff) | |
| download | bootstrap-a42875afe75e172f332f71ee71f902fbe5ac5f88.tar.xz bootstrap-a42875afe75e172f332f71ee71f902fbe5ac5f88.zip | |
Merge pull request #19233 from patrickhlauke/test-visual-buttons-patch2
Visual/manual test for checkbox/radio button kbd behavior
| -rw-r--r-- | js/tests/visual/button.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/tests/visual/button.html b/js/tests/visual/button.html index de060eabd..ba287989c 100644 --- a/js/tests/visual/button.html +++ b/js/tests/visual/button.html @@ -22,14 +22,15 @@ <h1>Button <small>Bootstrap Visual Test</small></h1> </div> - <p>Try interacting via mouse, via keyboard, and via keyboard after first interacting via mouse. (Refresh the page between each trial.)</p> - <button type="button" data-loading-text="Loading for 3 seconds..." class="btn btn-primary js-loading-button"> Loading state </button> <button type="button" class="btn btn-primary" data-toggle="button">Single toggle</button> + <p>For checkboxes and radio buttons, ensure that keyboard behavior is functioning correctly.</p> + <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> + <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary"> <input type="checkbox"> checkbox 1 @@ -42,6 +43,8 @@ </label> </div> + <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> + <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary"> <input type="radio" name="options" id="option1"> Radio 1 |
