<div class="btn-group" data-toggle="buttons">
<label class="btn btn-success"><input type="checkbox"> Low </label>
<label class="btn btn-warning"><input type="checkbox"> Medium </label>
<label class="btn btn-danger"><input type="checkbox"> High </label>
</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary"><input type="checkbox"> Open </label>
<label class="btn btn-secondary"><input type="checkbox"> Closed </label>
</div>
<div class="btn-group" data-toggle="buttons">
<label class="btn label-info"><input type="checkbox"> Yes </label>
<label class="btn btn-dark"><input type="checkbox"> No </label>
</div>
I'm curious about how we can make all selected checkboxes display with the same color. I attempted to use the following CSS:
.btn.active {
background-color: limegreen;
}
but unfortunately, it didn't work as expected.