Skip to content
Merged

Iss3159 #3442

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,18 @@ You can use as many tabs as you want in a page, although it is recommended you k

### Default tabs

Default tabs do not have any borders, other than the bottom line to distinguish between a selected tab, a hovered over tab, and a non-active tab. These tabs are most commonly used as top page header tabs or nested within components.
Default tabs do not have any borders, other than the bottom line to distinguish between a selected tab, a hovered over tab, and a non-active tab. They can be formatted as standard or filled. Filled tabs stretch to fit the width of the container that they are placed in.

<img src="./img/default-tabs.png" alt="Default tabs ex" width="1500"/>

Default tabs can be formatted as standard or filled. Filled tabs stretch to fit the width of the container that they are placed in. They can be used in screens with narrower widths, such as a drawer within a [primary detail view](/demos/primary-detail). When in doubt, stick with the standard styled tabs.
Is it recommended to use these tabs over other tab types in most cases - specifically for top page header tabs or tabs nested within components.

<img src="./img/default-vs-filled-tabs.png" alt="Standard and filled tabs ex" width="1500"/>
<img src="./img/default-tabs.png" alt="Default tabs ex" width="1500"/>

1. Standard styled tabs
2. Filled styled tabs

### Boxed tabs

Box tabs are functionally the same as default tabs, but they are outlined by a box to emphasize the area that the tab spans. Boxed tabs can be used interchangeably with default tabs, but we recommend using the default tabs over boxed tabs. Boxed tabs can be used in combination with default tabs to create more hierarchy on the page.
Box tabs are functionally the same as default tabs, but they are outlined by a box to emphasize the area that the tab spans. Boxed tabs can be used in screens with narrower widths, such as a drawer within a primary detail view.

<img src="./img/boxed-tabs.png" alt="Boxed tabs ex" width="1500"/>
<img src="./img/default-vs-filled-tabs.png" alt="Standard and filled tabs ex" width="1500"/>

### Vertical tabs

Expand All @@ -57,7 +53,7 @@ Horizontal overflow menus are useful when there is not enough space on a screen

### Hierarchy

When you have more than one tab level in your UI, you can either choose to use a mixture of boxed and default tabs to create hierarchy on a page, or you can chose to use primary and secondary tabs which differ in their font size, with primary tabs using 16pt font, and secondary tabs using 14pt font.
When designing tab organization with two levels of tabs, it's important to create a clear hierarchy. To achieve this, the top level tabs should use the default open tabs, which feature a 16pt font. Meanwhile, the bottom level tabs should use the secondary open tabs, which feature a 14pt font.

### Primary tabs

Expand All @@ -67,14 +63,15 @@ Use primary tabs only for top page header tabs and vertical tabs. Primary tabs u

### Secondary tabs

Use secondary tabs when, you have another set of tabs, in addition to a primary level, or when using tabs within a component, for example in a modal. Secondary tabs use 14px text.
Use secondary tabs to help differentiate between two levels of tabs and make it easier for users to navigate through the interface.

<img src="./img/secondary-1-tabs.png" alt="Secondary tabs ex" width="1500"/>

1. Primary tabs
2. Secondary tabs

Secondary tabs should also be used when tabs live within a component, or are in a non-full page context, like in a modal.

<img src="./img/secondary-2-tabs.png" alt="Secondary tabs ex" width="1500"/>

1. **Secondary tabs:** These should be used when tabs live within a component, like the modal.