Pricing component with toggle using Native CSS and Zero Javascript

Solution retrospective
Has some responsiveness issues. The widths could have been better off implemented with viewport units or container units and the fonts could have been made responsive using clamps()
. Uses :has()
selector to implement the toggle switch. I also tried to make the toggle switch accessible with a focus outline.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Brian Michael Poblete's solution.
Join 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