Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Responsive FAQ accordion without JS

Williams Akanni•350
@shadowbanks
A solution to the FAQ accordion 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?

Being able to complete the challenge

What challenges did you encounter, and how did you overcome them?

My challenge was to ensure that only one accordion panel was open at a time, all without relying on JavaScript, while maintaining accessibility.

In the end, I faced a choice: make the feature work, but it would be a bit of a headache from an accessibility standpoint, or prioritize accessibility and allow all accordion panels to be open at once.

I opted for the latter since it's an FAQ, and having all panels open at once isn't a big issue. Plus, the challenge didn’t specify anything about this aspect.

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

I'm open to all suggestions. Thank you for taking the time :))

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 Williams Akanni'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