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

@D-KILLJOY

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, Didia Uchenna!

I saw your tweet, you are asking for suggestions to improve your solution.

I recommend you also ask for suggestions here. This way, you have more likely to receive some suggestions.

Here are some suggestions:

  • I recommend using the native HTML elements for the accordions—<summary> and <details> tags. Right now, the accordions are not accessible to the keyboard.
  • Remove width and height from the <body>. width: 100% is already the default styling. Set min-height instead of height.
  • Don't change the <html> or the :root font size. It can cause huge accessibility implications for those users with different font sizes or zoom requirements.
  • I recommend using the hidden attribute to hide the content of the collapsed accordion panel.

I hope this helps.

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