Brand Guide

Components

Button

Starts an action, such as saving a form or opening a dialog.

Variants

Sizes

With an icon

An icon goes before the label, or after it when it points where the action leads.

Icon only

Text button

A button’s height and padding with no shape, such as “Show more” under a list. Text with no padding round it, in a line of copy or a footer, is a text link.

Sign-in

Loading

Disabled

render draws the button as another element and keeps its look.

Best practices

  • One default or brand button per view, for the thing we most want done. brand is for the main conversion action only; everything else steps down to outline or ghost.
  • Name what happens: "Save changes", "Apply", not "OK" or "Submit". Sentence case, no full stop.
  • Pass loading while the action runs, instead of swapping in a spinner. It shows the spinner and stops a second press.
  • Keep a form's main button active and say what's missing when it's pressed, rather than leaving it disabled with no reason given.
  • An icon-only button needs an aria-label.
  • For navigation, render the button as a link with render, so it is a real link to the browser and to assistive technology.