SCSS, Vanilla JS and tried my best to make this accessible
Design comparison
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
- @mattstuddertPosted over 3 years ago
Amazing work on this challenge, Agata! I love how you've paid such close attention to accessibility. Your
aria-live
solution is really nice, and your added focus states look great!Keep up the great work! 🙌
2
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