aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsts-ryan-holton <[email protected]>2018-11-07 20:54:40 +0000
committerMartijn Cuppens <[email protected]>2018-11-07 21:54:40 +0100
commit2df2cdd33d6b36a18882d0c1e1ecc823a0468468 (patch)
treebad7ffd3e01c7daf062390aee42c4682e733a478
parent8de915ededb0da22bd28002665a10b5dc9738e01 (diff)
downloadbootstrap-2df2cdd33d6b36a18882d0c1e1ecc823a0468468.tar.xz
bootstrap-2df2cdd33d6b36a18882d0c1e1ecc823a0468468.zip
Wrap checkboxes in `.form-group` (#27624)
-rw-r--r--site/docs/4.1/components/dropdowns.md24
-rw-r--r--site/docs/4.1/components/forms.md12
2 files changed, 21 insertions, 15 deletions
diff --git a/site/docs/4.1/components/dropdowns.md b/site/docs/4.1/components/dropdowns.md
index 76c09d9ca..6011bd989 100644
--- a/site/docs/4.1/components/dropdowns.md
+++ b/site/docs/4.1/components/dropdowns.md
@@ -715,11 +715,13 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
<label for="exampleDropdownFormPassword1">Password</label>
<input type="password" class="form-control" id="exampleDropdownFormPassword1" placeholder="Password">
</div>
- <div class="form-check">
- <input type="checkbox" class="form-check-input" id="dropdownCheck">
- <label class="form-check-label" for="dropdownCheck">
- Remember me
- </label>
+ <div class="form-group">
+ <div class="form-check">
+ <input type="checkbox" class="form-check-input" id="dropdownCheck">
+ <label class="form-check-label" for="dropdownCheck">
+ Remember me
+ </label>
+ </div>
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
@@ -740,11 +742,13 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
<label for="exampleDropdownFormPassword2">Password</label>
<input type="password" class="form-control" id="exampleDropdownFormPassword2" placeholder="Password">
</div>
- <div class="form-check">
- <input type="checkbox" class="form-check-input" id="dropdownCheck2">
- <label class="form-check-label" for="dropdownCheck2">
- Remember me
- </label>
+ <div class="form-group">
+ <div class="form-check">
+ <input type="checkbox" class="form-check-input" id="dropdownCheck2">
+ <label class="form-check-label" for="dropdownCheck2">
+ Remember me
+ </label>
+ </div>
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
diff --git a/site/docs/4.1/components/forms.md b/site/docs/4.1/components/forms.md
index 6bef38527..64ec2cea2 100644
--- a/site/docs/4.1/components/forms.md
+++ b/site/docs/4.1/components/forms.md
@@ -715,11 +715,13 @@ Add the `disabled` attribute to a `<fieldset>` to disable all the controls withi
<option>Disabled select</option>
</select>
</div>
- <div class="form-check">
- <input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
- <label class="form-check-label" for="disabledFieldsetCheck">
- Can't check this
- </label>
+ <div class="form-group">
+ <div class="form-check">
+ <input class="form-check-input" type="checkbox" id="disabledFieldsetCheck" disabled>
+ <label class="form-check-label" for="disabledFieldsetCheck">
+ Can't check this
+ </label>
+ </div>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</fieldset>