More information on the ARIA disclosure pattern.
aria-expanded="true"
on the button when the container is open.aria-expanded="false"
on the button when the container is closed.aria-controls="id-container"
on the button to reference the id
of container element that opens and closes.button
does not have focus, CSS border
property is set to 1px
.button
does have focus, CSS border
property is set to 3px
and padding is reduced by 2px
.a
element does not have focus, CSS border
property is set to none
.a
element does have focus, CSS border
property is set to 2px
and padding is reduced by 2px
.