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 69 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.

z2nd 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.

  • Divider line between beneath the tabs, above the content.

  • Active tab. To differentiate the active tab from inactive tabs, apply a 3 px colored underline. (Designs for tabs in the Details Panel and Ribbon differ).

The horizontal layout of tabs never changes.

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

  • There's always one tab selected at a 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.

Subsequently, the tab last selected by the user can be shown instead.

Content

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

  • They should be short: one or two words maximum.

  • Icons are not permitted as tab labels.

States

Regular

Hover

Active

Selected

Focused, Regular

Focused, Hover

Focused, Active

Focused, Selected

Interaction

  • Only one tab can be selected at a time.

  • A tab can be selected by clicking on the entire label.

  • 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 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.

  • Tab order should be consistent across an experience.

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

Accessibility compliance

Each component should be A11y complied. Please follow the 3 guidelines linked below. At the very least we should document that each component is in compliance with each of the 3.

Focus management

We already set a general guidelines described in Keyboard & Focus Management Guidelines

Screen reader support

Make sure the components support screen reader for content or behavior where needed - see Screen Reader Guidelines

Contrast & size compliance

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


TBD

Current appearances in our products

Resources

https://tympanus.net/Development/TabStylesInspiration/

https://material.io/guidelines/components/tabs.html

Needs to be designed

Open issues

  • Maximum tab number - vertical and horizontal

  • Scroll tab - out of the window

  • Align tab solution between mobile and desktop (card / line)

  • Decide about maximum letter on title

Next Steps/Tasks

  • UX design

  • To see full view of tab with other components

  • General suggestion - implementation more interaction for update system to today design

New LUX design 



  • No labels