Design comparison
SolutionDesign
Solution retrospective
Would love to know how this could be done using only CSS. My only idea is to use hidden checkboxes and use :checked selector to open accordions etc.
Community feedback
- @markup-mitchellPosted about 3 years ago
There are native HTML elements -
<detail>
and<summary>
that will get you most of the way there!Marked as helpful1@antonisntoulisPosted about 3 years ago@markup-mitchell wow had 100% forgotten about those, I bet that it would be even more accessible using these native HTML elements!
0
Please log in to post a comment
Log in with GitHubJoin 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