I have a some check-boxes which have material-icons in the span along with it. I want the material-icons to be different of the checked and unchecked ones. I tried some with my own, but not working.
<input type="checkbox" id="main_assessment" name="main_assessment"/>
<span class="label-text">
<span style="font-size:1.2em;padding-right:10px;text-transform:none;"><strong>Main Assessment</strong></span>
<span style="color:#8c8c8c;"><i class="material-icons">print_disabled</i></span>
</span>
This is my checkbox, which has material-icons print-disabled
by default. I want my check-box
which are checked
to have material-icons as print
.
I tried as
:checked + span + span + i .material-icons::before{
content:"print";
}
What is the solution? Thanks in advance:)