Skip to end of banner
Go to start of banner

Tabs

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 77 Next »

Description

Tabs enable content organization at a high level. They allow the user to switch between views, data sets, or functional options.

Types

Type

Usage

Image

Main tabs

Single row above the associated content. Use it as tabbed navigation.

2nd level tabs

Use only as a second level to main tabs.
Single row beneath the main tabs and above the associated content.

Details panel tabs

Use only in the Details Panel.
Single row above the associated content.

Ribbon tabs

Use only in the Ribbon as tabbed navigation.

Usage & Behavior

Tabs organize content into groups and allow navigation between them. Content should be:

  • related.

  • at the same level of the content hierarchy.

General guidelines

Structure

Tabs consist of:

  • Tab items, shown using short text labels.

  • An active tab, which is visually different.

The horizontal layout of tabs never changes:

  • They always appear side by side in a single row.

  • There's only one active tab at any given time.

Default state

By default, the left tab is the first active tab. Note: This is the initial setting provided by the control. Technically you can override the initial selection, but it is not recommended.

Content

  • The label describes the content contained within each tab, and sets user expectations.

States

Main Tabs

2nd Level

Details Pane Tabs

Ribbon Tabs

Ribbon Tabs - Collapsed

Regular

Hover

Active

Selected

Expands the Ribbon

Focused, Regular

Focused, Hover

Focused, Active

Focused, Selected

Expands the Ribbon

Interaction

  • Only one tab can be selected at a time.

  • A tab can be selected by clicking it.

  • Selecting a tab will change the view below to the new tab’s associated content.

  • Clicking on a new tab will automatically remove the selection from the previously-selected tab.

  • When the tab label is truncated, hovering over it will show a Tooltip with the full label.

Validations and errors

Tab item error

Tab item warning

Best practices

Use

  • to switch between views, data sets, or functional options.

  • when the content needs to be organized into exclusive groups.

Don’t use

  • when there is not a lot of content. In this case consider using an Accordion.

  • when there are dependencies between tabs. In this case, consider using a Wizard.

  • when all the data needs to be visible in one place.

General

  • Use clear and short labels.

  • Do not use icons for tab labels.

  • Keep in mind reduced mobile widths and space for translated labels - the character length of a label will impact the experience.

  • A maximum of six tabs is recommended. This is to maintain an uncluttered UI and reduce cognitive load for users.

  • In the Details Panel, a maximum of four tabs is recommended.

  • Tabs should be ordered by importance, popularity or user’s workflow. The order should be consistent across the experience.

  • Tabs with related content should be grouped adjacent to each other.

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility

Design

Zeplin link

Screen thumbnail

Main Tabs

https://zpl.io/bPkL1ma

2nd Level Tabs

https://zpl.io/2ZqjW0X

Details Pane Tabs

https://zpl.io/VODWzzr

Ribbon Tabs - Expand

https://zpl.io/bJvqAmE

Code




  • No labels