10000 Merge pull request #18250 from twbs/v4-checkbox-markup · liuwenye2010/bootstrap@11dff58 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11dff58

Browse files
committed
Merge pull request twbs#18250 from twbs/v4-checkbox-markup
Checkbox validation markup (Take 2)
2 parents 54a964a + 0462cd3 commit 11dff58

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

docs/components/forms.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -561,21 +561,17 @@ Ensure that an alternative indication of state is also provided. For instance, y
561561
<input type="text" class="form-control form-control-error" id="inputError1">
562562
</div>
563563

564-
<div class="has-success">
565-
<div class="checkbox">
566-
<label>
567-
<input type="checkbox" id="checkboxSuccess" value="option1">
568-
Checkbox with success
569-
</label>
570-
</div>
564+
<div class="checkbox has-success">
565+
<label>
566+
<input type="checkbox" id="checkboxSuccess" value="option1">
567+
Checkbox with success
568+
</label>
571569
</div>
572-
<div class="has-warning">
573-
<div class="checkbox">
574-
<label>
575-
<input type="checkbox" id="checkboxWarning" value="option1">
576-
Checkbox with warning
577-
</label>
578-
</div>
570+
<div class="checkbox has-warning">
571+
<label>
572+
<input type="checkbox" id="checkboxWarning" value="option1">
573+
Checkbox with warning
574+
</label>
579575
</div>
580576
<div class="has-danger">
581577
<div class="checkbox">
@@ -584,6 +580,11 @@ Ensure that an alternative indication of state is also provided. For instance, y
584580
Checkbox with error
585581
</label>
586582
</div>
583+
<div class="checkbox has-danger">
584+
<label>
585+
<input type="checkbox" id="checkboxError" value="option1">
586+
Checkbox with error
587+
</label>
587588
</div>
588589
{% endexample %}
589590

0 commit comments

Comments
 (0)
0