Trying to customize the buttons on a radio. Followed this:
https://ej2.syncfusion.com/angular/documentation/radio-button/style-and-appearance/
Implemented this:
.e-radio-wrapper e-wrapper{
color: yellow;
background-color: green;
}
.e-radio + label:hover::before{
color: yellow;
background-color: green;
}
.e-radio:checked + label::after, e-radio:checked + label::before
{
color: yellow;
background-color: green;
}
.e-radio:checked:focus + label::before, .e-radio:checked + label:hover::before{
color: yellow;
background-color: green;
}
I get green backgrounds but the outer edge of the circle is still red for the selected radio.
A) how to I change that?
B) how do I change the color of the label itself (“Option 1” “This button’s label” etc)
Thanks
/* To customize the outer circle */
.e-radio:checked + label::before {
border-color: #689f38;
}
.e-radio:checked:focus + label::before,
.e-radio:checked + label:hover::before {
/* csslint allow: adjoining-classes */
border-color: #449d44;
}
|
/* To change the Label of Radio Button */
.e-radio + label .e-label {
color: #449d44;
}
|
Good stuff!
thanks for the assist.