Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Faq accordion main

EL harabiy•280
@Mubarak-Adeyemi
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?

I’m most proud of successfully implementing the FAQ accordion with event delegation, ensuring smooth toggling and accessibility across all devices. The transitions and animations turned out well, and the solution feels polished. Next time, I would focus more on testing edge cases and refining the keyboard accessibility further for an even smoother user experience.

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

One challenge was getting the accordion to collapse and open properly using event delegation. It was tricky to manage the active states and ensure only one FAQ opened at a time. I solved this by adding a method to automatically close other active FAQs when one is clicked, improving the toggle functionality.

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 EL harabiy'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