Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FAQ accordion solution

@beatrizvsgoncalves

Desktop design screenshot for the FAQ accordion coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

I'm satisfied with HTML and CSS, but as for JS... I still have to study a lot 😅

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

I had several challenges.

  1. I didn't get a satisfactory result with the background image for mobile devices. I ended up putting the desktop one instead.
  2. As I am at the beginning of my studies in JS, I had difficulty making the site interactive. I even had an idea of ​​what to do, but in practice I know it would be terrible haha. I ended up turning to Chat-GPT to help me do something better.
  3. I was unable to navigate using the keyboard. Instead of using Chat-GPT to help me again, I decided to study more before taking on more JS challenges and then I'll come back to finish this one.😅

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

What should be done regarding keyboard navigation? I haven't reached this part yet in my studies.

Community feedback

P
Koda👹 3,810

@kodan96

Posted

hi there! 👋

You can make elements keyboard-focusable by setting their tabindex attribute to 0, and use JS to handle the events when certain keys (usually space and enter) is clicked when the element is in focus.

Hope this was helpful 🙏

Good luck and happy coding! 💪

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

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