DEV Community

Discussion on: Tristate Toggle Switch with Pure CSS

Collapse
 
nop1984 profile image
Mykola Dolynskyi • Edited

mistake in code
.custom-radio-btn input:checked + .checkmark
should be
.custom-radio-button input:checked + .checkmark

UPD: made demo + added some JS for label below jsfiddle.net/nop1984/r54mejq6/

Collapse
 
sanaz profile image
Sanaz Bahmani • Edited

The mistake's been corrected. Thanks for noticing :)
The demo's pretty great btw.