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

SASS + Vanilla Javascript FAQ Accordion Card Solution

@flp-pcll

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello, everyone!

This is my solution to the FAQ accordion card challenge. What do you think?

Thanks!

Community feedback

@elidrissidev

Posted

Hey Felipe, great work on this solution!

Here are my suggestions:

Good luck, and keep it up!

Marked as helpful

0

@flp-pcll

Posted

@elidrissidev Thank you, Mohamed! This link with the Acessibility Guidelines will be very helpful to improve my html markup because this is a point in which i always get confused.

I had read about building the accordion component only with html when i got stuck with the arrow-icon part (i was working with the <svg> so the event.target was a mess between the <svg> and <path>) but i decided to stick with the initial plan to make it work, but i will definetly make use of the <details> tag to see how it works!

0

@elidrissidev

Posted

@flp-pcll You can use pointer-events: none on the <svg> and it will prevent it from becoming the event.target even when it's clicked! Hope that saves you the headache like It did for me 😉

Marked as helpful

0

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