]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Simplifies markup for checkbox validation states 18250/head
authorZac Echola <zac.echola@so.mnscu.edu>
Thu, 20 Aug 2015 15:55:15 +0000 (10:55 -0500)
committerMark Otto <markdotto@gmail.com>
Sun, 15 Nov 2015 03:26:13 +0000 (19:26 -0800)
docs/components/forms.md

index 031dc83a8e16830ca0a89dec5cb3cd277cb29ccf..3d2764f92176cd2b81086aa5e3a61f46a23fc3f3 100644 (file)
@@ -561,21 +561,17 @@ Ensure that an alternative indication of state is also provided. For instance, y
   <input type="text" class="form-control form-control-error" id="inputError1">
 </div>
 
-<div class="has-success">
-  <div class="checkbox">
-    <label>
-      <input type="checkbox" id="checkboxSuccess" value="option1">
-      Checkbox with success
-    </label>
-  </div>
+<div class="checkbox has-success">
+  <label>
+    <input type="checkbox" id="checkboxSuccess" value="option1">
+    Checkbox with success
+  </label>
 </div>
-<div class="has-warning">
-  <div class="checkbox">
-    <label>
-      <input type="checkbox" id="checkboxWarning" value="option1">
-      Checkbox with warning
-    </label>
-  </div>
+<div class="checkbox has-warning">
+  <label>
+    <input type="checkbox" id="checkboxWarning" value="option1">
+    Checkbox with warning
+  </label>
 </div>
 <div class="has-danger">
   <div class="checkbox">
@@ -584,6 +580,11 @@ Ensure that an alternative indication of state is also provided. For instance, y
       Checkbox with error
     </label>
   </div>
+<div class="checkbox has-danger">
+  <label>
+    <input type="checkbox" id="checkboxError" value="option1">
+    Checkbox with error
+  </label>
 </div>
 {% endexample %}