Navigation Links: Disclosure Pattern
Example
Navigation Links: Disclosure Pattern on WebEdit
More information on the ARIA disclosure pattern.
Keyboard Features
- Button open and closes the list of links using space or enter key.
- Pressing the esc key when focus is on a link closes the container element and moves focus back to the button..
ARIA Markup
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 theid
of container element that opens and closes.
High Contrast Support
- When
button
does not have focus, CSSborder
property is set to1px
. - When
button
does have focus, CSSborder
property is set to3px
and padding is reduced by2px
. - When
a
element does not have focus, CSSborder
property is set tonone
. - When
a
element does have focus, CSSborder
property is set to2px
and padding is reduced by2px
.
HTML Source Code
CSS Source Code
Javascript Source Code