aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-11-14 19:40:08 -0800
committerMark Otto <[email protected]>2015-11-14 19:40:08 -0800
commit11dff583cec1679b8dbdc92df8c4572a36844612 (patch)
tree05ca47201cf974755ed9fff15d0f623a41d95435 /docs/components
parent54a964ae194e544a8d58b25fe377681e137cbbd6 (diff)
parent0462cd3d8122047fe82edc62c7f12fe39ade3f1c (diff)
downloadbootstrap-11dff583cec1679b8dbdc92df8c4572a36844612.tar.xz
bootstrap-11dff583cec1679b8dbdc92df8c4572a36844612.zip
Merge pull request #18250 from twbs/v4-checkbox-markup
Checkbox validation markup (Take 2)
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/forms.md29
1 files changed, 15 insertions, 14 deletions
diff --git a/docs/components/forms.md b/docs/components/forms.md
index 563739fb2..e148c6102 100644
--- a/docs/components/forms.md
+++ b/docs/components/forms.md
@@ -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 %}