Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
Seems so basic, but getting the label and container of the radio button elements to activate(check) the radio-input.
Originally I could get the radio button only, then the label (forgot the for= attribute, soo simple 😳), but struggled with the whole container.
I had it has a div with my BEM class. I knew I could do it with JS but wanted to keep it as raw CSS as possible. With some quick googling, found out I could wrap the whole input in a label. 😯). So simple, but totally escaped me.
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord