]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove broken CSS that tried to reset the absolute positioning when there was no...
authorMark Otto <markdotto@gmail.com>
Tue, 8 Aug 2017 05:25:35 +0000 (22:25 -0700)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:36:35 +0000 (22:36 -0700)
docs/4.0/components/forms.md
scss/_forms.scss

index 6abe03e58ebf0c21109a5268350375daf75c22cb..eb3deb415c2086fc5169c92c1a7a0f59b4b4b14d 100644 (file)
@@ -238,17 +238,17 @@ Group checkboxes or radios on the same horizontal row by adding `.form-check-inl
 
 ### Without labels
 
-Should you have no text within the `<label>`, the input is positioned as you'd expect. **Currently only works on non-inline checkboxes and radios.** Remember to still provide some form of label for assistive technologies (for instance, using `aria-label`).
+Add `.position-static` to inputs within `.form-check` that don't have any label text. Remember to still provide some form of label for assistive technologies (for instance, using `aria-label`).
 
 {% example html %}
 <div class="form-check">
   <label class="form-check-label">
-    <input class="form-check-input" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
+    <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
   </label>
 </div>
 <div class="form-check">
   <label class="form-check-label">
-    <input class="form-check-input" type="radio" name="blankRadio" id="blankRadio1" value="option1" aria-label="...">
+    <input class="form-check-input position-static" type="radio" name="blankRadio" id="blankRadio1" value="option1" aria-label="...">
   </label>
 </div>
 {% endexample %}
index 519554b47dde112a61ae0bacfdae42a70d91e2c7..e884890e48b0d264618ece303febdffeda1a5550 100644 (file)
@@ -236,10 +236,6 @@ select.form-control-lg {
   position: absolute;
   margin-top: $form-check-input-margin-y;
   margin-left: -$form-check-input-gutter;
-
-  &:only-child {
-    position: static;
-  }
 }
 
 // Radios and checkboxes on same line