aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-09-05 16:21:58 -0700
committerMark Otto <[email protected]>2016-09-05 16:21:58 -0700
commitc5a90914704a11e434761d7309e11c7bf9282fec (patch)
tree6cf147d060930df791b5dbc12fa251c74a520443 /docs/components
parent22afc82a91e35b45849e60235f3d648fab9ac784 (diff)
parent019502543bc132c2d0cd81d366c7ba0698b6f770 (diff)
downloadbootstrap-c5a90914704a11e434761d7309e11c7bf9282fec.tar.xz
bootstrap-c5a90914704a11e434761d7309e11c7bf9282fec.zip
Merge branch 'v4-dev' into v4-docs-streamlined
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/forms.md49
-rw-r--r--docs/components/input-group.md4
2 files changed, 26 insertions, 27 deletions
diff --git a/docs/components/forms.md b/docs/components/forms.md
index fcacd461e..09d0d4f8f 100644
--- a/docs/components/forms.md
+++ b/docs/components/forms.md
@@ -59,28 +59,29 @@ Remember, since Bootstrap utilizes the HTML5 doctype, **all inputs must have a `
</div>
<fieldset class="form-group">
<legend>Radio buttons</legend>
- <div class="radio">
- <label>
- <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
+ <div class="form-check">
+ <label class="form-check-label">
+ <input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that&mdash;be sure to include why it's great
</label>
</div>
- <div class="radio">
- <label>
- <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
+ <div class="form-check">
+ <label class="form-check-label">
+ <input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
</div>
- <div class="radio disabled">
- <label>
- <input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled>
+ <div class="form-check disabled">
+ <label class="form-check-label">
+ <input type="radio" class="form-check-input" name="optionsRadios" id="optionsRadios3" value="option3" disabled>
Option three is disabled
</label>
</div>
</fieldset>
- <div class="checkbox">
- <label>
- <input type="checkbox"> Check me out
+ <div class="form-check">
+ <label class="form-check-label">
+ <input type="checkbox" class="form-check-input">
+ Check me out
</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
@@ -150,10 +151,8 @@ Below is a complete list of the specific form controls supported by Bootstrap an
<tr>
<td class="text-nowrap">
{% markdown %}
-`.radio`<br>
-`.radio-inline`<br>
-`.checkbox`<br>
-`.checkbox-inline`
+`.form-check`<br>
+`.form-check-inline`
{% endmarkdown %}
</td>
<td class="text-nowrap">
@@ -730,21 +729,21 @@ Ensure that an alternative indication of state is also provided. For instance, y
{% endexample %}
{% example html %}
-<div class="checkbox has-success">
- <label>
- <input type="checkbox" id="checkboxSuccess" value="option1">
+<div class="form-check has-success">
+ <label class="form-check-label">
+ <input type="checkbox" class="form-check-input" id="checkboxSuccess" value="option1">
Checkbox with success
</label>
</div>
-<div class="checkbox has-warning">
- <label>
- <input type="checkbox" id="checkboxWarning" value="option1">
+<div class="form-check has-warning">
+ <label class="form-check-label">
+ <input type="checkbox" class="form-check-input" id="checkboxWarning" value="option1">
Checkbox with warning
</label>
</div>
-<div class="checkbox has-danger">
- <label>
- <input type="checkbox" id="checkboxDanger" value="option1">
+<div class="form-check has-danger">
+ <label class="form-check-label">
+ <input type="checkbox" class="form-check-input" id="checkboxDanger" value="option1">
Checkbox with danger
</label>
</div>
diff --git a/docs/components/input-group.md b/docs/components/input-group.md
index 36c11c7d0..21f944d64 100644
--- a/docs/components/input-group.md
+++ b/docs/components/input-group.md
@@ -200,7 +200,7 @@ Buttons in input groups are a bit different and require one extra level of nesti
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-secondary">Action</button>
- <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ <button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
@@ -219,7 +219,7 @@ Buttons in input groups are a bit different and require one extra level of nesti
<input type="text" class="form-control" aria-label="Text input with segmented button dropdown">
<div class="input-group-btn">
<button type="button" class="btn btn-secondary">Action</button>
- <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ <button type="button" class="btn btn-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu dropdown-menu-right">