Good solution!! To improve accessibility you could consider adding aria-expanded attributes to your buttons.
<button aria-expanded="false">
....
</button>
You can use javascript to toggle aria-expanded= false/true when the button is click.
0
What are you most proud of, and what would you do differently next time?
I'm proud of completing this challenge!
What challenges did you encounter, and how did you overcome them?
.
What specific areas of your project would you like help with?
Anything that can help me improve.
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