DEV Community

Tobias Schächtelin
Tobias Schächtelin

Posted on

1 1

CSS <label> pseudo-content trick

Inspired by the Inclusive Components by Heydon Pickering and the pseudo-content trick for inclusive card components, I implemented this approach with radio buttons:

https://codepen.io/tschach/full/PowvmRK

I would be very interested in discussing whether this is a valid option and what could be improved. So if you have any feedback on the semantics, let me know!

I also tweeted about it, so feel free to leave your feedback there:

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay