mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Simplifies markup for checkbox validation states
This commit is contained in:
parent
1a3acc8a4b
commit
0462cd3d81
@ -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">
|
<input type="text" class="form-control form-control-error" id="inputError1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="has-success">
|
<div class="checkbox has-success">
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="checkboxSuccess" value="option1">
|
<input type="checkbox" id="checkboxSuccess" value="option1">
|
||||||
Checkbox with success
|
Checkbox with success
|
||||||
</label>
|
</label>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="has-warning">
|
<div class="checkbox has-warning">
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="checkboxWarning" value="option1">
|
<input type="checkbox" id="checkboxWarning" value="option1">
|
||||||
Checkbox with warning
|
Checkbox with warning
|
||||||
</label>
|
</label>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="has-danger">
|
<div class="has-danger">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
@ -584,6 +580,11 @@ Ensure that an alternative indication of state is also provided. For instance, y
|
|||||||
Checkbox with error
|
Checkbox with error
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="checkbox has-danger">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="checkboxError" value="option1">
|
||||||
|
Checkbox with error
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user