diff options
| author | Zac Echola <[email protected]> | 2015-08-20 10:55:15 -0500 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-11-14 19:26:13 -0800 |
| commit | 0462cd3d8122047fe82edc62c7f12fe39ade3f1c (patch) | |
| tree | 77d14829ff99a167ec300f9bb8c44aa6b8faa077 /docs/components | |
| parent | 1a3acc8a4b95f2efc45ccbd5218330c6193c4424 (diff) | |
| download | bootstrap-0462cd3d8122047fe82edc62c7f12fe39ade3f1c.tar.xz bootstrap-0462cd3d8122047fe82edc62c7f12fe39ade3f1c.zip | |
Simplifies markup for checkbox validation states
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/forms.md | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/docs/components/forms.md b/docs/components/forms.md index 031dc83a8..3d2764f92 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 %} |
