FAQ accordion card: BEM, Vanilla JS, SASS

Please log in to post a comment
Log in with GitHubCommunity feedback
- @grace-snow
This looks and functions really nice on mobile, well done!
It's mostly accessible, but I think could be enhanced with some aria attributes to link the faq question and answer, or alternatively, if you wrapped your accordion buttons in a heading tag that would make it fully accessible very easily.
Don't think you need the accordion separators as divs in the html - pop them in pseudo elements or just use padding and borders for the same effect.
That's all from me. Very very nice work though!
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