Here is a solution for overriding the default bootstrap styles, although I recommend using your own custom class instead.
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle{
color: #fff;
background-color: green;
border-color: green;
}
.btn:not(:disabled):not(.disabled) {
cursor: pointer;
background: red;
border-color: red;
}
Consider something like this:
.btn .btn-secondary .focus .toggle-on-off {
background: red;
border-color: red;
}
.btn .btn-secondary .focus .active toggle-on-off{
background-color: green;
border-color: green;
}
Bootstrap adds the class active
, which is why it's important to customize your own classes.