@bbsmoothdev
Posted
Hey, just a few quick issues. You can't have spaces in your id
values. So id="Question 1"
needs to be id="Question1"
. Also, I see you are using the aria-controls
attribute on each button
to associate the button with the paragraph it toggles, which is great, but you forgot an even more important aria attribute, aria-expanded
. This attribute goes on the button
, not the p
element. When the content is not showing then it should be aria-expanded="false"
. When the content is showing then it should be aria-expanded="true"
.
Marked as helpful
@semperprimum
Posted
@bbsmoothdev, thanks so much for your feedback! Will be noted!