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 Accordian card using CSS, JavaScript

santhi 300

@sansanthi

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


Any feedback and suggestions would be appreciated. It takes me a lot of time to do positioning shadow background image in desktop view.

Community feedback

@arbaiv

Posted

Hi there 👋, amazing project, clean JS. You can add the click event on the question itself and not just only on the icon. It's better for the UX. Also, you should add Keyboard functionality by adding role="button" tabindex="0" on the div.question element.

Marked as helpful

0

santhi 300

@sansanthi

Posted

@arbaiv Thanks for suggestion. I will try it.

0

@hariprasad9899

Posted

you just nailed it with the JS code. Just view my js code for this lol ! I complicated too much and you did it like ' hold my beer ' ! :)

Marked as helpful

0

santhi 300

@sansanthi

Posted

@hariprasad9899 Thank you! I just learned this type of code writing from a JavaScript Tutorial :)

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