I'm trying to customize a checkbox but for some reason I cannot style children of this label element. For example, trying to add padding to the child Input element I have tried the last two entries shown in the CSS but neither works. What is going on here?
#container {
display: flex;
flex-direction: column;
}
#container div {
display: flex;
}
.test {
display: flex;
height: 4rem;
align-items: center;
padding-left: 2rem;
}
.container input {
padding-right: 3rem;
}
.test input {
padding-right: 3rem;
}
<section id="container">
<div>
<label class="test">Expand Sidebar To Show Text
<input type="checkbox">
<span class="checkmark"></span>
</label>
</div>
</section>