Tabs

Tabs are a component that subdivides page content into panes, which are displayed individually based upon which tab is active. They typically span the entire container width, and the active tab is clearly indicated.

Tabs are only used when there are two or more in the set.

When filtering the content of a tab, the filter controls should appear at the top of the active tab panel, beneath the row of tab links.

Tab Links

Content Guidelines

Only images and text may be displayed within a tab link.

  • A tab label is required.
  • A paragraph of supporting text, following the tab label, is optional.
  • An image, preceding the tab label, is optional.

Tab links should use meaningful text that clearly communicates what's within the corresponding tab panel.

Words within a tab link may hyphenate.

If there's insufficient space to display all of the text in a tab link, then truncate using ellipses "...". As always, mouse hover (or hold-press on touchscreen) should reveal the full text within a tooltip.

Overflow Controls

When the tab links exceed the available container width, they are clipped at the right fold.

Overflow controls (left/right arrows) are shown when the tab links are clipped. These function like the controls for filmstrip carousel.

Off-Canvas Modal

On smaller breakpoints, tab links become a vertical option list.

Select one of the options in the vertical list to open an off-canvas modal that contains the tab content.

Tab URL

Selecting a tab (other than the active default) should modify the page URL so that users can easily share or return to the context.

Localization

Tab links become right-aligned, and their order is reversed, for languages that read right-to-left.

Keyboard Interaction

Tab In/Out

When focus moves into a tab list, place focus on the active tab.

When the tab list already has focus, Tab key moves focus to the next element outside the tablist, which is either the first focusable element inside the tab panel or the tab panel itself.

Switching Between Tabs

When the tab list already has focus, Left Arrow moves focus to the previous tab. If focus is on the first tab, move focus to the last tab.

  • If the tabs are in a vertical list on a smaller breakpoint, Up Arrow key performs as Left Arrow described above.

When the tab list already has focus, Right Arrow moves focus to the next tab. If focus is on the last tab element, move focus to the first tab.

  • If the tabs are in a vertical list on a smaller breakpoint, Down Arrow key performs as Right Arrow described above.

Home key moves focus to the first tab.

End key moves focus to the last tab.

Tabs are automatically activated, and their corresponding panel is displayed, when they receive focus.

Do's and Don'ts

Types

Variants

Common Button Labels and Usage

Title case, 2-3 words maximum.
Do not combine actions in a label (exception: "Customize & Buy").
If standard labels don't fit the button's purpose, align label with the task the user is attempting.

Please refer to the Dell Technologies branding website, https://brand.delltechnologies.com/faq/#voice, for further information regarding call-to-action labels and usage.

Button Label:
Corresponding Action:
Add to Cart
Search
Cancel
Save
Edit
Delete
Continue
Next/Previous
Submit
Select
Sign In/Sign Out
View Details
Ok/Cancel
Learn More
Close
Takes users to Cart page, with item added
Used for search buttons
Takes users back to entry point for a task
Used to save an item
Navigates users to change an item
Deletes an item on the page, usually with a verification step
Used as progression
Used as forward and backward navigation (Next is primary, Previous is secondary)
Used to submit a task or info
Used for choosing items in a task flow
Authentication standard, for consistency do not use Log In/Log Out or Signin/Signout
Used instead of “Select” in cases of product details or within learn content
For use in modal verification steps when more specific CTAs will not fit due to space
Used to link users to more learning content or contextual help
Used within modal windows

Standard Tabs

<div class="dds__tabs-container"> <ul class="dds__tabs dds__mb-4" role="tablist" aria-label="Example description of tabs"> <li role="none"> <button id="home-tab" class="dds__tab-link dds__active" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="home" aria-selected="true"> Home <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li role="none"> <button id="profile-tab" class="dds__tab-link" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="profile" aria-selected="false" tabindex="-1"> Profile <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li role="none"> <button id="contact-tab" class="dds__tab-link" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="contact" aria-selected="false" tabindex="-1"> Contact <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> </ul> <div class="dds__tab-content"> <div id="home" class="dds__tab-pane dds__fade dds__active dds__show" role="tabpanel" tabindex="0" aria-labelledby="home-tab"><p>Home content</p></div> <div id="profile" class="dds__tab-pane dds__fade" role="tabpanel" tabindex="0" aria-labelledby="profile-tab"><p>Profile content</p></div> <div id="contact" class="dds__tab-pane dds__fade" role="tabpanel" tabindex="0" aria-labelledby="contact-tab"><p>Contact content</p></div> </div>
</div>

Justified Tabs

<div class="dds__tabs-container"> <ul class="dds__tabs dds__mb-4" role="tablist" aria-label="Example description of tabs"> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link dds__active" id="example-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="example" aria-selected="true"> <span>Example to show the auto adjusted tab height</span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="automobile-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="automobile" aria-selected="false" tabindex="-1"> <span>Automobile</span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="boats-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="boats" aria-selected="false" tabindex="-1"> <span>Boats</span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="planes-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="planes" aria-selected="false" tabindex="-1"> <span>Planes</span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> </ul> <div class="dds__tab-content" id="defaultJustifiedTabContent"> <div class="dds__tab-pane dds__fade dds__active dds__show" id="example" tabindex="0" role="tabpanel" aria-labelledby="example-tab">Example</div> <div class="dds__tab-pane dds__fade" id="automobile" tabindex="0" role="tabpanel" aria-labelledby="automobile-tab">Automobile</div> <div class="dds__tab-pane dds__fade" id="boats" tabindex="0" role="tabpanel" aria-labelledby="boats-tab">Boats</div> <div class="dds__tab-pane dds__fade" id="planes" tabindex="0" role="tabpanel" aria-labelledby="planes-tab">Planes</div> </div>
</div>

Centered Tabs

<div class="dds__tabs-container"> <div class="dds__tabs-centered-container"> <ul class="dds__tabs dds__flex-nowrap dds__tab-centered" role="tablist" aria-label="Example description of tabs"> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="inspiron-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="inspiron" aria-selected="false" tabindex="-1"> <span> <span class="dds__h4">Inspiron Laptops</span> For home and home office </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="latitude-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="latitude" aria-selected="false" tabindex="-1"> <span> <span class="dds__h4">Latitude Laptops</span> For business-class security and reliability </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="vostro-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="vostro" aria-selected="false" tabindex="-1"> <span> <span class="dds__h4">Vostro Laptops</span> For small business computing </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link dds__active" id="xps-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="xps" aria-selected="true"> <span> <span class="dds__h4">XPS Laptops</span> For ultimate experience </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="precision-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="precision" aria-selected="false" tabindex="-1"> <span> <span class="dds__h4">Dell Precision Mobile Workstations</span> For professional creators </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> </ul> </div> <div class="dds__tab-content dds__mt-4" id="myTabContent"> <div class="dds__tab-pane dds__fade" id="inspiron" tabindex="0" role="tabpanel" aria-labelledby="inspiron-tab"> <h4>Inspiron Laptops</h4> <p>For home and home office</p> </div> <div class="dds__tab-pane dds__fade" id="latitude" tabindex="0" role="tabpanel" aria-labelledby="latitude-tab"> <h4>Latitude Laptops</h4> <p>For business-class security and reliability</p> </div> <div class="dds__tab-pane dds__fade" id="vostro" tabindex="0" role="tabpanel" aria-labelledby="vostro-tab"> <h4>Vostro Laptops</h4> <p>For small business computing</p> </div> <div class="dds__tab-pane dds__fade dds__active dds__show" id="xps" tabindex="0" role="tabpanel" aria-labelledby="xps-tab"> <h4>XPS Laptops</h4> <p>For ultimate experience</p> </div> <div class="dds__tab-pane dds__fade" id="precision" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>Dell Precision Mobile Workstations</h4> <p>For professional creators</p> </div> </div>
</div>

Centered Tabs with Image

<div class="dds__tabs-container"> <div class="dds__tabs-centered-container"> <ul class="dds__tabs dds__flex-nowrap dds__tab-centered" role="tablist" aria-label="Example description of tabs"> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="inspiron1-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="inspiron1" aria-selected="false" tabindex="-1"> <img src="https://via.placeholder.com/80" alt=""> <span> <span class="dds__h4">Inspiron Laptops</span> For home and home office </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="latitude1-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="latitude1" aria-selected="false" tabindex="-1"> <img src="https://via.placeholder.com/80" alt=""> <span> <span class="dds__h4">Latitude Laptops</span> For business-class security and reliability </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="vostro1-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="vostro1" aria-selected="false" tabindex="-1"> <img src="https://via.placeholder.com/80" alt=""> <span> <span class="dds__h4">Vostro Laptops</span> For small business computing </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link" id="xps1-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="xps1" aria-selected="false" tabindex="-1"> <img src="https://via.placeholder.com/80" alt=""> <span> <span class="dds__h4">XPS Laptops</span> For ultimate experience </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> <li class="dds__flex-tab" role="none"> <button class="dds__tab-link dds__active" id="precision1-tab" data-toggle="dds__tab" data-target="#exampleResponsiveTab" role="tab" aria-controls="precision1" aria-selected="true"> <img src="https://via.placeholder.com/80" alt=""> <span> <span class="dds__h4">Dell Precision Mobile Workstations</span> For professional creators </span> <i class="dds__icons dds__chevron-right" aria-hidden="true"></i> </button> </li> </ul> </div> <div class="dds__tab-content dds__mt-4" id="centeredImageTabContent"> <div id="inspiron1" class="dds__tab-pane dds__fade" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>Inspiron Laptops</h4> <p>For home and home office</p> </div> <div id="latitude1" class="dds__tab-pane dds__fade" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>Latitude Laptops</h4> <p>For business-class security and reliability</p> </div> <div id="vostro1" class="dds__tab-pane dds__fade" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>Vostro Laptops</h4> <p>For small business computing</p> </div> <div id="xps1" class="dds__tab-pane dds__fade" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>XPS Laptops</h4> <p>For ultimate experience</p> </div> <div id="precision1" class="dds__tab-pane dds__fade dds__active dds__show" tabindex="0" role="tabpanel" aria-labelledby="precision-tab"> <h4>Dell Precision Mobile Workstations</h4> <p>For professional creators</p> </div> </div>
</div>

No items found.

No items found.

No items found.

To be determined.

The W3C Web Accessibility Initiative (WAI) develops standards and support materials to help you understand and implement accessibility.

Please follow the best practices for tabs from WAI-ARIA authoring practices 1.1.

Please also refer to these recommendations for tabs from WAI-ARIA 1.1.

You may refer to this example of tabs with automatic activation and this example of tabs with manual activation from WAI-ARIA practices 1.1.