]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update JS-powered buttons docs to include single button example
authorMark Otto <markdotto@gmail.com>
Sun, 24 Dec 2017 22:25:18 +0000 (14:25 -0800)
committerMark Otto <markd.otto@gmail.com>
Thu, 28 Dec 2017 18:19:27 +0000 (10:19 -0800)
Closes #25067

docs/4.0/components/buttons.md

index 02feb1cb291e2e6996f0876da7e5c6649eab2df2..f7ac8e7628352090677277af30d245da9f711d0a 100644 (file)
@@ -123,15 +123,9 @@ The checked state for these buttons is **only updated via `click` event** on the
 Note that pre-checked buttons require you to manually add the `.active` class to the input's `<label>`.
 
 {% example html %}
-<div class="btn-group btn-group-toggle" data-toggle="buttons">
+<div class="btn-group-toggle" data-toggle="buttons">
   <label class="btn btn-secondary active">
-    <input type="checkbox" checked autocomplete="off"> Active
-  </label>
-  <label class="btn btn-secondary">
-    <input type="checkbox" autocomplete="off"> Check
-  </label>
-  <label class="btn btn-secondary">
-    <input type="checkbox" autocomplete="off"> Check
+    <input type="checkbox" checked autocomplete="off"> Checked
   </label>
 </div>
 {% endexample %}