DEV Community

Discussion on: Create custom keyboard accessible checkboxes

Collapse
 
pr0da profile image
David Prokaj

clip: rect(0,0,0,0); may solve this instead of left

Collapse
 
lkopacz profile image
Lindsey Kopacz

Yeah, I used to use clip more, must have slipped my brain.

The good news though is you're thinking about ensuring that the checkbox will work, both minds in the right place :D

Collapse
 
link2twenty profile image
Andrew Bone

I like doing

[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}