Skip to content
Submitted 11 months ago

Responsive FAQ accordion without JS

@shadowbanks
A solution to the FAQ accordion challenge

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

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