Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Accordion with Checkboxes, JS for Keyboard Navigation

ha308ing•240
@ha308ing
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

Nothing special to be proud of in it =\

Next time I'd try HTML5 and tags (mdn)

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

I thought to use only html and css for expaning accordion content, but so it happened that keyboard events on a label don't pass to the checkbox, and I had to add js event handlers to the labels =(

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

Is there any way to apply shadow on an element, so that shadow was only on part of the element, like upper half has no shadow, but lower part with shadow? (and that shadow doesn't spread to the upper half)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ha308ing's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License