Split Buttons
The following macros are not currently supported in the header:
  • style

Split Buttons

Description

A split button groups actions together in a Drop-down Menu, with one primary action and a set of related actions.

Split Buttons - Regular.png

 

Usage & Behavior

General guidelines

Structure

The split button consists of:

  • an action area, with a label or icon showing the primary action.

  • an arrow icon.

The separator between these two areas signals that they have different actions.

Split Buttons Active.png

 

 

The arrow icon opens an action menu, as a Drop-down Menu.

Split Buttons Menu.png

 

Content

  • The label in the action area should be the primary action.

  • The width of the action menu should adapt to the longest option, up to a maximum width. Where options are too long they should be truncated with a tooltip displaying the full text shown on hover.

See the main Buttons information for guidelines on labels.

See Drop-down Menu for the order of options.

Internal Logic

  • The action area and the drop-down arrow area are treated as 2 distinct buttons, with their own separate states. For example, they have separate hover states:

Split Buttons Hover.png

 

Split Buttons Hover Menu.png

 

  • The primary action should also be shown in the action menu.

  • The button has 2 modes of operations:

    • Persistent split button - the default action is kept until the user makes a different selection, which then becomes the default.

    • Fixed split button - the primary action is kept as the default, even when the user selects another option.

  • The action menu closes when the user makes a selection.

States

 

Regular

Enter

 

Regular

Enter

Regular

Split Buttons Regular-Regular.png

 

Split Buttons - Enter Regular.png

Hover

Split Buttons Hover-Regular.png

 

Split Buttons Hover-Menu-Regular.png

 

Split Buttons - Enter Hover.png
Split Buttons - Enter Hover Icon.png

Active

Split Buttons Active-Regular.png

 

Split Buttons Menu-Active-Regular.png
Split Buttons - Enter Selected.png
Split Buttons - Enter Selected Icon.png

Disabled

Split Buttons Disabled-Regular.png

 

Split Buttons - Enter Disabled.png

Focused

Split Buttons Focused-Regular.png

 

Split Buttons Menu-Focused-Regular.png

 

Split Buttons - Enter Focused.png
Split Buttons - Enter Focused Icon.png

Focused, Hover

Split Buttons Focsed-Hover-Regular.png

 

Split Buttons Menu-Focsed-Hover-Regular.png

 

Split Buttons - Enter Focused Hover.png
Split Buttons - Enter Focused Icon Hover.png

Focused, Active

Split Buttons Focused-Active-Regular.png

 

Split Buttons Focused-Active-Menu-Regular-2.png
Split Buttons - Enter Focused Active.png
Split Buttons - Enter Focused Active Icon.png

Interaction

  • Clicking the left-hand action area triggers the primary action.

  • Clicking the right-hand drop-down arrow opens an action menu of alternative actions.

  • Clicking an action in the Action Menu triggers the related action.

Best practice

Use:

  • when there are many possible related actions, but only one primary action.

  • if the actions are related but only one of the actions is commonly used.

Don't use:

  • as a form element.

  • for navigation → use Links.

  • when there are a lot of related actions (more than 5 or 6) → consider using an Action Menu.

Accessibility compliance

Unless otherwise specified, see our general compliance information in Fundamentals - Accessibility.

Focus management

Keyboard

Description

Tab

Navigates to the next component.

Shift + Tab

Navigates to the previous component.

Space

Opens the menu. For the Action menu’s focus management see Action Menus | Focus management.

Enter

Applies the current action.

Esc

N/A

Arrows

Up/Down - Opens the menu.

 

Design

Zeplin link

Screen thumbnail

Zeplin link

Screen thumbnail

https://zpl.io/Q0Alg9n

https://zpl.io/vMgvGOY

 

Code