Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 10 months ago

Custom range slider, mobile-first, pixel-perfect w/ HTML & CSS & JS

accessibility, bem
haquanq•1,565
@haquanq
A solution to the Interactive pricing component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Hello 👋👋👋

Thanks to fronendmentor team, this challenge gave me an opportunity to learn more about accessibility when building custom component and it is fun!

🚀 Built with

  • Semantic HTML
  • Pure CSS
  • Vanilla JavaScript
  • ARIA APG Guides

🐲 What i have done

  • Used my own judgement to achieve pixel-perfect without design files
  • Built an range slider utilized native input type="range" with custom draggable thumb for visual users and accessibility for screen readers (tested with NVDA)
  • Overridden default focus effect with outline on button, input

🐦 Things to improve

  • My JS source code is messy, i am thinking about using TypeScript for stronger static types next time when i came back for this challenge again
  • Figure out a system to handle CSS font custom variables across all components
What challenges did you encounter, and how did you overcome them?

None 🐱

What specific areas of your project would you like help with?

Any feedback is appreciated 🙏

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on haquanq'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
Frontend Mentor logo

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

Frontend Mentor

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

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub