Noel Hoppe• 330
@noelhoppe
Posted
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 helpful
1
Mouwvfic• 210
@mouwaficbdr
Posted
Hey thanks for your feedback! @noelhoppe I'll apply your suggestions !
0