diff options
| author | Rohit Sharma <[email protected]> | 2020-07-22 22:33:11 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-14 07:09:15 +0200 |
| commit | 418f17ee2b849dafdc39623ba2378df9229164a7 (patch) | |
| tree | 7446b75f6b2a8e8ad9f5f8ab8143b4d451c94a14 /js/tests/visual/button.html | |
| parent | fe961c192d951bde610cdcd4817f4d8548d33141 (diff) | |
| download | bootstrap-418f17ee2b849dafdc39623ba2378df9229164a7.tar.xz bootstrap-418f17ee2b849dafdc39623ba2378df9229164a7.zip | |
Add `bs` in data attributes
- Add `bs` in data APIs everywhere
- Update unit tests
Diffstat (limited to 'js/tests/visual/button.html')
| -rw-r--r-- | js/tests/visual/button.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/visual/button.html b/js/tests/visual/button.html index 14cc20870..75ad13209 100644 --- a/js/tests/visual/button.html +++ b/js/tests/visual/button.html @@ -10,14 +10,14 @@ <div class="container"> <h1>Button <small>Bootstrap Visual Test</small></h1> - <button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off"> + <button type="button" class="btn btn-primary" data-bs-toggle="button" aria-pressed="false" autocomplete="off"> 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"> + <div class="btn-group" data-bs-toggle="buttons"> <label class="btn btn-primary active"> <input type="checkbox" checked autocomplete="off"> Checkbox 1 (pre-checked) </label> @@ -31,7 +31,7 @@ <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"> + <div class="btn-group" data-bs-toggle="buttons"> <label class="btn btn-primary active"> <input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected) </label> |
