Tabs

A component to organize and navigate between related content at the same level of a website.


Usage#

  • Use Tabs to organize similar content groups on the same page.
  • This allows content to be viewed without having to navigate away from that page.
  • The tabs are used to show the weekly offers on the start page.

Overall styling#

  • Text style is basic.
  • The line-height is 120%.
  • All states use shadow-default.

Desktop & tablet landscape (LG & MD)#

  • Dividers come in gray-light as color with a 1px thickness.
  • The whole component has rounded corners with a 2px radius.
  • The width is only scalable by adding up the different symbols (left, center or right).

tab: LG+MD

 TypesAttributesPreview
Active text-color: gray-darker
background-color: basic-white
 tab: active (LG/MD)
 Hover / Focustext-color: basic-white
background-color: brand-primary-base
tab: hover-focus (LG/MD)
Inactivetext-color: gray-darker
background-color: gray-lightest
tab: inactive (LG/MD)

Elements#

  • The individual elements come with pre-set round corners.
  • In combination, these individual elements are combined to the complete tab component.
 TypesAttributesPreview
Left Rounded corners: 2px (upper-/lower-left) tab: left (LG/MD)
 CenterRounded corners: none
divider: left
tab: center (LG/MD)
RightRounded corners: 2px (upper-/lower-right)
divider: left
tab: right (LG/MD)

Tablet portrait & smartphone (SM & XS)#

  • There is no inactive state.
  • The states can be switched via the slider-buttons.
  • Styling of the slider-buttons can be found here.

tab: SM+XS

TypesAttributes Preview
Activetext-color: gray-darker
background-color: basic-white 
tab: active (SM/XS)
 Hover / Focustext-color: gray-darker
background-color: basic-white
tab: hover-focus (LG/MD)

Spacing & measurements#

Desktop & tablet landscape (LG & MD)#

TypesAttributesPreview
Horizontal spacingpadding: 16pxLG/MD: horizontal spacing
Vertical spacingpadding: 16pxLG/MD: horizontal spacing

Tablet portrait & smartphone (SM & XS)#

TypesAttributesPreview
Horizontal spacingpadding: 8pxSM/XS: horizontal spacing
Vertical spacingpadding: 16pxLG/MD: horizontal spacing

What can be modified?#

  • Override the text.
  • Override the arrows.
  • Adjust the width of a single symbol according to the text.
  • Modify tabs to your project needs by adding or deleting single tab symbols.

Our workflow in Sketch#

  • Change the states of text, states and arrows using the "Overrides"-function.

Change log#

Changed#

  • Doc: "Tab" | Clean up the documentation for the right structure and sentence case

Fixed#

  • Sketch: "Tab" | Text positioning was fixed for MD and SM+XS

Changed#

  • "Tab" | Changed symbols: with layer-style settings

Removed#

  • "Tab" | Removed symbols: duplicated symbols

4.4.1 Core & 4.4.1 Web - 2020-05-07#

Fixed#

  • "Tab" | Fixed symbols: line height and overall padding

4.2.0 Core & 4.2.0 Web - 2020-01-16#

Changed#

  • "Tab" | Changed symbols to new smart layout of Sketch

4.0.0 Core & 4.0.0 Web - 2019-09-30#

Changed#

  • "Tab" | Changed description: background-color of interactive state description from "gray-lighter" to "gray-lightest"