I want to select the first child of the form-radio-label element. I know already know this works perfectly:
.form {
&-radio-input:checked ~ &-radio-label &-radio-button::after {
opacity: 1;
}
}
But why doesn't work with &-radio-input:checked ~ &-radio-label &:first-child::after?
HTML:
<div class="form-group">
<div class="form-radio-group">
<input type="radio" class="form-radio-input" id="small" name="size" />
<label for="small" class="form-radio-label">
<span class="form-radio-button"></span>
Small tour group
</label>
</div>
<div class="form-radio-group">
<input type="radio" class="form-radio-input" id="large" name="size" />
<label for="large" class="form-radio-label">
<span class="form-radio-button"></span>
Large tour group
</label>
</div>
</div>