Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Learned some useful JS methods:
.nextElementSibling
.classList
Community feedback
- @noelhoppePosted 8 months ago
Hi, some suggestions:
div.content
should be<ul>
div.section
should be<li>
div.section-head
should be a<button>
h3
should be<p>
- event should target
<button>
- Use ària-expanded, aria-controls
on
<button>` - Use ària-hidden
on
div.section-details` - Toggle attribute ària-expanded` on click and if (aria-expanded == true) button + div.section-details.classList.remove(hidde).
Marked as helpful1@mouwaficbdrPosted 8 months agoHey thanks for your feedback! @noelhoppe I'll apply your suggestions !
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