Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

SCSS, Vanilla JS and tried my best to make this accessible

@AgataLiberska

Desktop design screenshot for the Interactive pricing component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

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

P
Matt Studdert 13,611

@mattstuddert

Posted

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

@AgataLiberska

Posted

@mattstuddert thank you, it means a lot!

1

Please log in to post a comment

Log in with GitHub
Discord logo

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