Skip to content

Commit bcac42a

Browse files
Use Bootstrap 4 checkbox classes
Replace the Bootstrap 3 classes.
1 parent 11e87ba commit bcac42a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

demo/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@
6363
</select>
6464
</div>
6565

66-
<div class="checkbox">
67-
<label>
68-
<input type="checkbox" checked="checked" class="form-check-input js-case">
66+
<div class="form-group form-check">
67+
<input type="checkbox" checked="checked" id="case" class="form-check-input js-case">
68+
<label class="form-check-label" for="case">
6969
Case-sensitive
7070
</label>
7171
</div>
7272

73-
<div class="checkbox">
74-
<label>
75-
<input type="checkbox" checked="checked" class="form-check-input js-trim">
73+
<div class="form-group form-check">
74+
<input type="checkbox" checked="checked" id="trim" class="form-check-input js-trim">
75+
<label class="form-check-label" for="trim">
7676
Trim whitespace surrounding each word/phrase
7777
</label>
7878
</div>

demo/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
flex-direction: column;
1212
}
1313

14-
.checkbox {
14+
.form-check {
1515
margin-top: 1em;
1616
}
1717

@@ -25,7 +25,7 @@
2525
}
2626

2727
@media (min-width: 992px) {
28-
.checkbox {
28+
.form-check {
2929
margin-left: auto;
3030
margin-top: 0;
3131
}

0 commit comments

Comments
 (0)