DEV Community

loading...

Discussion on: Create custom keyboard accessible radio buttons

Collapse
mikewheaton profile image
Mike Wheaton

Thanks for this! I'm curious about opacity: 0 instead of display: none for the original radio button. Is this because screen readers are still using the original/hidden radio button?

Collapse
lkopacz profile image
Lindsey Kopacz Author

That's correct! I would check out @scottohara 's post about why: scottohara.me/blog/2017/04/14/incl...