Y-SLD/assets/playkit/global/scss/_mixins/_radio-variant.scss

20 lines
360 B
SCSS

@mixin radio-variant($parent, $color) {
#{$parent} input[type="radio"] {
+ label {
&::before {
border-color: $color;
}
&::after {
background-color: $color;
}
}
&:checked + label {
&::before {
border-color: $color;
}
&::after {
background-color: $color;
}
}
}
}