Is there a way to modify the background color of the active or selected button within a button group?
<div class="btn-group" role="group" aria-label="Basic radio toggle button group">
<input type="radio" class="btn-check" name="btnradio" id="btnradio1" checked>
<label id="monthly" class="btn btn-outline-primary" for="btnradio1">Button 1</label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio2">
<label class="btn btn-outline-primary" for="btnradio2">Button 2</label>
</div>
Although this CSS changes the color of unselected buttons, how can I adjust the background color of the selected button?
.btn-group .btn {
color: #ff60bd;
border-color: #ff60bd;
}
Thank you in advance!