Design comparison
SolutionDesign
Solution retrospective
I found a way how to change prices without JS on clicking the toggle - but it requires using pseudo-elements for the prices, so assistive technology can't read them + you can't select the prices, and this all is not great for accessibility. I wonder is there a better solution?
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