Closed derekyau closed 7 years ago
Hi @derekyau ,
yes, you can do that by adding this styles in your page:
<style>
.rsbc-switch-button.rsbc-switch-button-flat-round input[type="checkbox"] + label:after,
.rsbc-switch-button.rsbc-switch-button-flat-round:hover input[type="checkbox"]:checked + label,
.rsbc-switch-button.rsbc-switch-button-flat-round input[type="checkbox"] + label
{
background-color: #579fcb !important;
}
</style>
the above styles will override the default scheme colour.
this is great @gfazioli ! thanks
@derekyau please, have a look at the new props mode
in v2.2.0
thanks @gfazioli - I've upgraded, and its great. Just in time too, since I needed two switches on my page (one that behaved as normal, and one as 'mode=select'.
timely, thanks.
@derekyau you are welcome
awesome component!
i'm using the switch button in the sense of switching between two options rather than 'on/off', is there an easy way I can disable it from changing color to the 'off-state' and just keep it 'on' the whole time?