![](https://res.cloudinary.com/dz209s6jk/image/upload/f_auto,q_auto,w_900/Screenshots/has4zrbojufpg6skjv0f.jpg)
Submitted almost 4 years ago
SCSS, Vanilla JS and tried my best to make this accessible
@AgataLiberska
Design comparison
SolutionDesign
Solution retrospective
This challenge looks so innocent, but don't let it deceive you. I learnt so much!
I did my best to make it responsive: the toggle is two radio buttons, and screenreader should announce all changes made. At first I tried adding aria-live
to dynamic elements but didn't quite get the result that I wanted, I tried adding aria-labels to make what was read out clearer but eventually added a hidden element to hold the full text, so that when the billing frequency is changed, all info is read out and not just the price change.
If you notice any issues, please let me know! Thanks :)
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