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 theidof container element that opens and closes.
High Contrast Support
- When
buttondoes not have focus, CSSborderproperty is set to1px. - When
buttondoes have focus, CSSborderproperty is set to3pxand padding is reduced by2px. - When
aelement does not have focus, CSSborderproperty is set tonone. - When
aelement does have focus, CSSborderproperty is set to2pxand padding is reduced by2px.
HTML Source Code
CSS Source Code
Javascript Source Code