Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

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

Agata Liberska•4,075
@AgataLiberska
A solution to the Interactive pricing component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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 :)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Agata Liberska'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License