Skip to main content

Icon Button

An icon button uses icons as its primary visual element, representing actions or functions in a compact and visually appealing way.

Dos and Don'ts

Do
  • Use an icon button when the icon is universally understood.
Don't
  • Don't use an icon button if the icon is ambiguous and does not clearly indicate the action. Use a standard Button instead.


Anatomy

Anatomy of an icon button.
  1. Icon: Icon that visually represents the action.

Variants

Primary

Primary variant of an icon button.

Primary - alternative

Primary alternative variant of an icon button.

Secondary

Secondary variant of an icon button.

Outline

Outline variant of an icon button.

Translucent

Translucent variant of an icon button.

Ghost

Ghost variant of an icon button.

Ghost secondary

Ghost secondary variant of an icon button.

Ghost secondary dark

Ghost secondary dark variant of an icon button.

Inverse

Inverse variant of an icon button.

Inverse outline

Inverse outline variant of an icon button.

Inverse ghost

Ghost Inverse variant of an icon button.

Inverse ghost light

Ghost Inverse light variant of an icon button.

Sizes

Outlines the Icon Button sizes that are available, and where they should be used across our products.

SizeIcon sizeContainer sizeNotes
Large28px56px-
Medium24px48pxMedium is the default size of the component and should be used whenever possible.
Small24px40px-
XSmall20px32px-

Hierarchy

Icon buttons should follow a hierarchy of importance with regard to the action that is being committed by the user.

High

The primary icon button should be the single most important button in the hierarchy and therefore the most prominent. There should only be one high-priority Icon Button on the page.

Primary variant of an icon button.

Medium

The secondary and inverse icon buttons are of less importance and should have less prominence.

Secondary variant of an icon button.
Secondary inverse variant of an icon button.

Low

The outline, ghost, ghost tertiary and ghost inverse Icon Buttons should have the lowest prominence.

Outline variant of an icon button.
Ghost variant of an icon button.
Ghost secondary variant of an icon button.
Ghost inverse variant of an icon button.

Layout

Pairing

When using a Icon Button pairing, the key is to maintain consistency by all be the same type, with a 8px spacing between.

Two icon buttons that are displayed together in a row.

Interactive states

Outlines the atomic level interactive elements for the component.

Default

Default state of an icon button.

Hover

An icon button that is hovered.

Active

An icon button that is active.

Focus

An icon button that is focused.

Disabled

An icon button that is disabled.

Loading

An icon button that is loading.

Overrides

Icon colour override

Overrides are available in design and engineering for Secondary and Tertiary icon buttons which have orange icons. The default icon colour token $content-interactive-brand-solid (orange) can be replaced with $content-interactive-secondary-solid (black).

This can be helpful if you need to use a Secondary or Tertiary icon button but the orange icon doesn’t work with the surrounding UI.

Standard icon

A button with a standard coloured icon.

Overridden icon

A button with an icon that has colour overridden.

Example

Outlines the atomic level interactive elements for the component.

A hamburger menu icon button.
A close icon button.
Info and heart icon buttons.
Back to top