_checkbox()
Abstract checkbox component
scss
//
// @param hash $params
// size length
// border-radius length
//
.c-checkbox {
@include _checkbox((
size: $_base-font-size-px,
border-radius: $_border-radius,
));
}
html
<label>
<span class="c-checkbox">
<input type="checkbox">
<span class="c-checkbox__control"></span>
</span>
...
</label>