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 Card 🎯 [ USING DETAIL SUMMARY - VANILLA CSS3 - BEM ]

#accessibility#bem#lighthouse
Abdul Khalid πŸš€β€’ 72,140

@0xabdulkhalid

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, Frontend Mentor Community,

This is my solution for the FAQ Accordion Card Challenge .

  • I learned how to use and style the <details> and <summary> HTML elements.
  • Eventhough the <details> doesn't need JavaScript i used it to ensure that only one summary want to show up during others are closed.
  • If all summary are opened it's not looking nice, so only i provided that logic using js
  • Scored 100% on Google Pagespeed Insights! 🀩
  • Layout was built responsive via mobile first workflow approach
  • Had a lots of fun building this challenge !

Now for the questions :

  • I have no idea about heading structures, if you have any idea regarding to improve my heading structure then please leave a feedback
  • And the <details> element has support for tabfocus, so when the user hits the tab then outline will arise if user hit enter then summary is opened. But how a visibility disabled person can use this ? i used screen readers but i'm not satisfied with that
  • Finally, Feel free to leave any feedback and help me to improve my solution (or) make the code clean!

.

πŸ‘¨β€πŸ”¬ Follow me in my journey to finish all newbie challenges to explore solutions with custom features and tweaks

Ill be happy to hear any feedback and advice !

Community feedback

JoΓ£o Vitorβ€’ 500

@jvssvj

Posted

It turned out better than the original design, very good friend 🀩

2

Abdul Khalid πŸš€β€’ 72,140

@0xabdulkhalid

Posted

Glad to hear that my friend @jvssvj ! πŸ™Œ

0

@Alpha437

Posted

This is nothing short of perfection... Great job sireπŸ’«

1

Abdul Khalid πŸš€β€’ 72,140

@0xabdulkhalid

Posted

Thanks for your appreciation @Alpha437 πŸ‘‹

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