Submitted over 5 years agoA solution to the Pricing component with toggle challenge
Pricing component with toggle & no JS
@alex-kim-dev

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?
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Alex Kim'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