I'm working to style a form where I can't edit the HTML. I want to change the label text's color if the radio input is checked.
Here is the HTML
<label class="label-name">
<input name="radio-name" type="radio">
Yes
<a></a>
</label>
And here is the CSS I'm using
input[type="radio"]:checked + label {
background-color: #d9521e !important;
}
However, the label color isn't being updated. Is there any way to do this with CSS or JS?