Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

FAQ accordion (Tailwind CSS)

accessibility, animation, pwa, tailwind-css, lighthouse
Melvin Aguilar šŸ§‘šŸ»ā€šŸ’»ā€¢61,020
@MelvinAguilar
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi there šŸ‘‹, I’m Melvin, and this is my solution for this challenge. šŸš€

šŸŽ Features:

  • Achieved 100% in Lighthouse score for performance, accessibility, best practices, and SEO. šŸ“Š
  • Progressive Web App (PWA) support. šŸ“±šŸŒ
  • Utilized TailwindCSS for responsive styling. šŸŽØ
  • Codebase is well-maintained and formatted using Prettier. šŸ’»
  • Resemblance with the original design. šŸŽØ
  • No media queries were used. šŸ“±
  • Integrated very small animation. ✨

šŸ’» Two Solutions in Two Branches:

  • Native HTML Solution: Utilizing <details> and <summary> tags without the need for JavaScript. šŸš€
  • Accessible Disclosure Solution: Implementing Accessible Disclosure with a11y in mind for enhanced accessibility. 🌐

šŸ› ļø Built With:

  • TailwindCSS. šŸŽØ
  • npm - prettier - prettier-plugin-tailwindcss. šŸ’»
  • šŸ“š Further Resources:

    If you're interested in creating an Accessible Disclosure, I recommend checking out this informative article by Grace Snow: Tutorial: Let's Build an Accessible Disclosure

Any suggestions on how I can enhance this solution or achieve even better performance are welcome!

Thank you. šŸ˜ŠāœŒļø

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 Melvin Aguilar šŸ§‘šŸ»ā€šŸ’»'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