I am trying to add custom styles for checkbox, its working fine in both Google Chrome and Safari browser, but it's not working in Mozilla Firefox. Following are the styles I wrote.
input[type='checkbox'] {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeSpeed;
width: 13px;
height: 13px;
margin: 0;
margin-right: 1px;
display: block;
float: left;
position: relative;
cursor: pointer;
}
input[type='checkbox']:after{
content: "";
vertical-align: middle;
text-align: center;
line-height: 13px;
position: absolute;
cursor: pointer;
height: 25px;
width: 25px;
left: -2;
top: -2;
font-size: 10px;
background: #fff;
border: 1px solid #D5D8EC;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
}
// input[type='checkbox']:hover:after, input[type='checkbox']:checked:hover:after {
// background: #fff;
// content: url(../img/tick.png);
// color: #000;
// }
input[type='checkbox']:checked:after{
background: #fff;
content: url(../img/tick.png);
color: #000;
}
Kindly Help me