Design
Navigation is used to provide a set of controls that take the user to another view. Some controls look similar to navigation, but it's only navigation if the user "goes somewhere" after they activate the control.
If the user is not taken to a new page, it is likely that Tabs, a Button or Button Group would be more appropriate for the interaction.
There are several types of navigation.
- The Sidebar Menu is the primary navigation in the data room. As it interacts with the entire page's structure it is documented as a stand-alone pattern.
- Vertical is the default within the content area
- Horizontal is the default when placed within header.
- Breadcrumb is used when the items represent a hierarchy, giving context to the current view.
- Pagination is used to break up large data sets, for example search results.
On small screens, Horizontal navigation becomes Vertical; while Breadcrumbs and Pagination wrap to new lines.
Pagination
Design rule | Demonstration |
---|---|
Default pagination is 10 results per page. For 1-10 results, Pagination navigation simply states the number of results. | |
A maximum of 11 items can be shown in Pagination navigation, including Previous and Next controls; truncation markers; and page items. For nine pages or less, truncation is not required. |
|
For ten pages or more, truncation is required. Truncated data sets are navigated maintaining a 'contextual set' of five items - eg. the current page, with the two previous and next pages. |
|
On the first item, omit the Previous control. | |
For the first three items in the set, truncate to the right of the contextual set; but not to the left. | |
For the fourth item, the contextual set increases to six items to avoid a pointless truncation marker the left. | |
From the fifth to the fifth-last items, a contextual group of five sits in the middle; between two truncation markers and Previous/Next. | |
For the fourth-last item, the contextual set increases to six items to avoid a pointless truncation marker to the right. | |
For the last three items in the set, truncate to the left of the contextual set; but not to the right. | |
On the last item, omit the Next control. |
Code
Example | Element | Code |
---|---|---|
Vertical navigation. |
|
|
Horizontal navigation. |
|
|
Breadcrumb navigation. |
|
|
Breadcrumb navigation using assets. |
|
|
Breadcrumb tree navigation. |
|
|
Pagination navigation showing Previous, Next, Current and Truncation items. Note that Current and Truncation items get an ace-text span instead of a link. |
|