JSFiddle - React, Tailwind, and code Playground
by Ayyappan Sakthivadivel
HTML
<div class="applicants-list-header-checkbox">
<input id="applicants_list_header_select_all_checkbox" class="zippy-checkbox-custom-select-all" type="checkbox"/>
</div>
SCSS
.applicants-list-header-checkbox {
position: relative;
}
.applicants-list-header-checkbox .zippy-checkbox-custom-select-all {
position: absolute;
width: 20px;
height: 20px;
margin: 0;
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: 0;
cursor: pointer;
}
.applicants-list-header-checkbox .zippy-checkbox-custom-select-all:after {
content: '';
position: absolute;
display: block;
z-index: 1;
width: 20px;
height: 20px;
border: 1px solid #000;
border-radius: 0;
top: -3px;
left: 3px;
}
.applicants-list-header-checkbox .zippy-checkbox-custom-select-all[type=checkbox]:before {
background: #fff url(https://www.freeiconspng.com/uploads/black-checkmark-png-4.png);
background-repeat: no-repeat;
background-position: 2px 2px;
position: absolute;
left: 2px;
z-index: 2;
opacity: 0;
width: 100%;
height: 100%;
color: #EEA416;
background-size: contain;
}
.applicants-list-header-checkbox .zippy-checkbox-custom-select-all[type=checkbox]:checked:before {
content: '';
position: absolute;
top: 0px;
opacity: 1;
left: 0px;
border: 1px solid #000;
border-radius: 0;
}
.applicants-list-header-checkbox .zippy-checkbox-custom-select-all[type=checkbox]:focus {
outline: 0 !important;
}