Skip to content

pfe-tabs all changes #814

@coreyvickery

Description

@coreyvickery

Tabs

Themes

There are two themes available to choose from, light and dark.

Light theme

Themes - Light

Dark theme

Themes - Dark


Styles and interactions

Primary, Open, Wind variant, light theme

Horizontal

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/6b20a57b-62d0-4973-ab9f-a10c004eabfe/Open-Tabs-horizontal-light-theme-

Vertical

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/d6810288-96ce-42e5-9bb0-c7091d0c04c3/Open-Tabs-vertical-light-theme-

Typography

  • Labels: Red Hat Text, Regular, 16pt / 24 (1.5)

Color

  • Default and Focus text label: #6a6e73
  • Hover text label: #151515
  • Hover highlight bar: #b8bbbe, 3px height
  • Active text label: #151515
  • Active highlight bar: #e00, 3px height
  • Anchor (bottom or left line): #d2d2d2

Alignment and spacing

  • Alignment: Horizontal component is always centered
  • Text label spacing (top, right, bottom, left): 16px, 32px, 16px, 32px
  • No spacing in between when Hover and Active highlight bars are touching

Default
IX - Primary, Open, Wind variant, light theme, default

Focus
IX - Primary, Open, Wind variant, light theme, focus

Hover
IX - Primary, Open, Wind variant, light theme, hover

Active/Pressed
IX - Primary, Open, Wind variant, light theme, active pressed

Secondary, Box, Earth variant, light theme

Horizontal

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/33071de0-c23d-4a90-bef3-6159d06505ba/Box-Tabs-horizontal-light-theme-

Vertical

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/75692581-7698-4aae-b361-35530ed0d163/Box-Tabs-vertical-light-theme-

Typography

  • Labels: Red Hat Text, Regular, 16pt / 24 (1.5)

Color

  • Default and Focus text label: #6a6e73
  • Default and Focus tab BG: #f0f0f0
  • Hover text label: #151515
  • Hover highlight bar: #b8bbbe, 3px height
  • Active text label: #151515
  • Active label tab BG: #fff
  • Active highlight bar: #e00, 3px height
  • Anchor (bottom or left line): #d2d2d2

Alignment and spacing

  • Content area: No left, right, and bottom borders below component around content panel
  • Alignment: Flush left, no 1px pipe on left
  • 1px pipe in between all tabs, but not to the right of the last one: #d2d2d2
  • Tab spacing (top, right, bottom, left): 16px, 32px, 16px, 32px

Default
IX - Secondary, Box, Earth variant, light theme, default

Focus
IX - Secondary, Box, Earth variant, light theme, focus

Hover
IX - Secondary, Box, Earth variant, light theme, hover

Active/Pressed
IX - Secondary, Box, Earth variant, light theme, active pressed

Primary, Open, Wind variant, dark theme

Horizontal

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/d626e1c7-1e33-4edd-b131-f5effbc91968/Open-Tabs-horizontal-dark-theme-

Vertical

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/d7231502-dd43-4cd6-a8a9-8c9ee0fc3439/Open-Tabs-vertical-dark-theme-

Typography

  • Labels: Red Hat Text, Regular, 16pt / 24 (1.5)

Color

  • Default and Focus text label: #d2d2d2
  • Hover text label: #fff
  • Hover highlight bar: #b8bbbe, 3px height
  • Active text label: #fff
  • Active highlight bar: #e00, 3px height
  • Anchor (bottom or left line): #6a6e73

Alignment and spacing

  • Content area: No left, right, and bottom borders below component around content panel
  • Alignment: Flush left, no 1px pipe on left
  • 1px pipe in between all tabs, but not to the right of the last one: #d2d2d2
  • Tab spacing (top, right, bottom, left): 16px, 32px, 16px, 32px

Default
IX - Primary, Open, Wind variant, dark theme, default

Focus
IX - Primary, Open, Wind variant, dark theme, focus

Hover
IX - Primary, Open, Wind variant, dark theme, hover

Active/Pressed
IX - Primary, Open, Wind variant, dark theme, active pressed

Secondary, Box, Earth variant, dark theme

Horizontal

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/6c296f8d-1ebf-4ff9-91ed-dee05a44960d/Box-Tabs-horizontal-dark-theme-

Vertical

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/79e758b8-36f9-49f4-afa2-a1ba46063454/Box-Tabs-vertical-dark-theme-

Typography

  • Labels: Red Hat Text, Regular, 16pt / 24 (1.5)

Color

  • Default and Focus text label: #d2d2d2
  • Default and Focus tab BG: #3c3f42
  • Hover text label: #fff
  • Hover highlight bar: #b8bbbe, 3px height
  • Active text label: #fff
  • Active label tab BG: #151515
  • Active highlight bar: #e00, 3px height
  • Anchor (bottom or left line): #6a6e73

Alignment and spacing

  • Content area: No left, right, and bottom borders below component
  • Alignment: Flush left, no 1px pipe on left
  • 1px pipe in between all other tabs: #6a6e73
  • Tab spacing (top, right, bottom, left): 16px, 32px, 16px, 32px

Default
IX - Secondary, Box, Earth variant, dark theme, default

Focus
IX - Secondary, Box, Earth variant, dark theme, focus

Hover
IX - Secondary, Box, Earth variant, dark theme, hover

Active/Pressed
IX - Secondary, Box, Earth variant, dark theme, active pressed


Tab order

The order in which a user moves focus from one control to another by pressing the Tab key.

Tab order - Animation


Overflow scroll button

Applied to the Horizontal component when labels are too long and get cut off. There's no specific breakpoint for when a Scroll button appears, it depends on the number of labels and the character count of each label.

Styles and interactions

Horizontal, light theme

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/d334e6a9-c875-4ed3-90da-2cd9f60a31a2/Open-Tabs-horizontal-overflow-light-theme

Horiz scroll button - Primary, Open, Wind, light theme

Angle or arrow styles

  • Default and Focus: #151515
  • Hover and Active/Pressed: #06c
  • Disabled: #d2d2d2
  • Pipe or divider: #d2d2d2

Button BG styles

  • Adopts whatever the BG color is that the component is placed on

Default
IX - Overflow button, light theme, default

Focus
NA

  • The Scroll button can't be focused, only each individual Tab in the tab order instead

Hover
IX - Overflow button, light theme, hover

Active/Pressed
IX - Overflow button, light theme, active pressed

Horizontal, dark theme

https://xd.adobe.com/spec/3e62e93c-8338-4f31-5040-3b81f0ed5c71-4853/screen/68c6d18d-354c-4a2d-9f6f-228c28b25fd0/Open-Tabs-horizontal-overflow-dark-theme

Horiz scroll button - Primary, Open, Wind, dark theme

Angle or arrow styles

  • Default and Focus: #fff
  • Hover and Active/Pressed: #2b9af3
  • Disabled: #6a6e73
  • Pipe or divider: #6a6e73

Default
IX - Overflow button, dark theme, default

Focus
NA

  • The Scroll button can't be focused, only each individual Tab in the tab order instead

Hover
IX - Overflow button, dark theme, hover

Active/Pressed
IX - Overflow button, dark theme, active pressed

Interactivity

Default state

  • Text labels or Tabs are organized from left to right
  • When Overflow buttons appear, the left button is disabled and the right button is active

Active/Pressed

  • When the right Overflow button is clicked on or pressed, text labels or Tabs move from right to left
  • When the left Overflow button is clicked on or pressed, text labels or Tabs move from left to right

Tab order

Tab order Overflow animation

  • As a user presses the Tab key, the focus indicator will move from left to right outlining all Tabs until it reaches the end of the tab order where the Overflow button will become disabled

Breakpoints

When screens get smaller, the spacing between the component and the content panel reduces.

Open, Primary, Wind variant, horizontal

Desktop

Breakpoints - Primary, Open, Wind, horizontal - Desktop

Tablet, landscape

Breakpoints - Primary, Open, Wind, horizontal - Tablet, landscape

Tablet, portrait

Breakpoints - Primary, Open, Wind, horizontal - Tablet, portrait

Open, Primary, Wind variant, vertical

The vertical component occupies 20% of the total layout width on all breakpoints.

Desktop

Breakpoints - Primary, Open, Wind, vertical - Desktop

Tablet, landscape

Breakpoints - Primary, Open, Wind, vertical - Tablet, landscape

Tablet, portrait

Breakpoints - Primary, Open, Wind, vertical - Tablet, portrait

Secondary, Box, Earth variant, horizontal

Desktop

Breakpoints - Secondary, Box, Earth, horizontal - Desktop

Tablet, landscape

Breakpoints - Secondary, Box, Earth, horizontal - Tablet, landscape

Tablet, portrait

Breakpoints - Secondary, Box, Earth, horizontal - Tablet, portrait

Secondary, Box, Earth variant, vertical

The vertical component occupies 20% of the total layout width on all breakpoints.

Desktop

Breakpoints - Secondary, Box, Earth, vertical - Desktop

Tablet, landscape

Breakpoints - Secondary, Box, Earth, vertical - Tablet, landscape

Tablet, portrait

Breakpoints - Secondary, Box, Earth, vertical - Tablet, portrait

Spacing legend
https://www.patternfly.org/v4/design-guidelines/styles/spacers


Content panel

The area underneath a Tab set is where content can be placed.

Placement on backgrounds

Primary, Open, Wind variant

Transparent BG
BG placement - Primary, Open, Wind variant

  • Primary, Open, Wind variant Tabs have transparent content panel BGs where the content sits on top of BGs
  • Includes both Horizontal and Vertical components

Secondary, Box, Earth variant

Opaque BG
BG placement - Secondary, Box, Earth variant

  • Secondary, Box, Earth variant Tabs have opaque content panel BGs
  • Light theme always contains a white (#fff) content panel BG
  • Dark theme always contains a black (#151515) content panel BG
  • Includes both Horizontal and Vertical components

Borders

Borders

  • Secondary, Box, Earth variant Tabs don't have a border encircling the component and content panel

Usage/Accessibility

Primary, Open, Wind variant, light theme

Guidelines

  • Can't be used on BGs darker than #f0f0f0 (4.5:1)

Screen Shot 2020-04-01 at 2 12 34 PM

Secondary, Box, Earth variant, light theme

Guidelines

  • Use on white/light gray BGs only

Screen Shot 2020-04-02 at 4 45 32 PM

Primary, Open, Wind variant, dark theme

Guidelines

  • Can't be used on BGs lighter than #4f5255 (5.2:1)

Screen Shot 2020-04-01 at 2 20 05 PM

Secondary, Box, Earth variant, dark theme

Guidelines

  • Use on black/dark BGs only

Screen Shot 2020-04-02 at 4 42 04 PM

Active tab

  • Tab on left/in position 1 is always the Active tab

Tab order

  • Always moves left to right (for non-RTL languages) or top to bottom
  • User input/Tab key should focus Active tab/first tab on left (or the top) and then cycle through content in the content area (LTR or top-to-bottom)
  • Focus will target next tab/second tab after leaving the content area

Spacing

Primary, Open, Wind variant

Horizontal

Spacing - Primary, Open, Wind variant, horizontal

Horizontal, overflow

Spacing - Primary, Open, Wind variant, horizontal, overflow

Vertical

Spacing - Primary, Open, Wind variant, vertical

Secondary, Box, Earth variant

Horizontal

Spacing - Secondary, Box, Earth variant, horizontal

Horizontal, overflow

Spacing - Secondary, Box, Earth variant, horizontal, overflow

Vertical

Spacing - Secondary, Box, Earth variant, vertical

Spacing legend
https://www.patternfly.org/v4/design-guidelines/styles/spacers

Metadata

Metadata

Labels

accessibilityImprove accessibilitydesign systemUpdates or issues to align components to the Red Hat Design System.featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions