Use Left Hand Navigation...
- To navigate through various sections.
- To structure the information in a hierarchical format.
Don't use Left Hand Navigation...
- To organize content into separate views within the same context. Use Tabs instead.
- To navigate between sections within the same page. Use Anchor Bar instead.
Button Menu
Use skin="button-menu"
to display the Links as Buttons.
Accessibility
- Since the Left Hand Navigation is a
<nav>
tag, it needs an accessible label to make it distinguishable from other navigation landmarks such as the top navigation. The easiest way to accomplish this is to give it anaria-label
attribute whose value is localized text describing the navigation. - In the React API,
LeftHandNavigationHeader
andLinkListHeading
create<h2>
and<h3>
tags by default. If these do not represent the proper document structure for your page, use theas
prop on these components to change the tags. - If the Left Hand Navigation has a heading(s), then the Link List that has heading labels should have an
aria-labelledby
attribute whose value is the id of its heading. Refer to the Link List documentation. - In the Vanilla API, use a
<nav>
tag instead of a<div>
. If not possible, place arole="navigation"
on the wrapper element.