Button

Use buttons to help users take important actions on a page.

Open this example in Storybook

When to use buttons

Use a button when a user needs to take an important action, such as:

  • start a form
  • submit a form
  • pay
  • save changes
  • go to next or previous step in a transaction

When not to use buttons

Do not use a button for navigation. Use a link instead.

For example, do not use buttons to link to:

  • one guidance page from another
  • more information about a topic
  • external organisations
  • a report, policy or document
  • pages which are not part of a user journey

How to use buttons

We have 4 kinds of button:

Buttons can also appear in a disabled state but avoid this where possible.

Align the main button on a page to the left-edge of the form or content. On smaller screens, buttons stretch across the screen’s width.

Button text

Keep button text short, usually no more than 4 words.

If you need more words, check if the page title, headings and nearby content make the page purpose clear.

Button text should:

  • start with a verb
  • use sentence case
  • describe the action the button performs

For example:

  • ‘Start now’ on a simple start page for a form
  • ‘Sign in’ to an account a user has already created
  • ‘Continue’ on a form that does not save a user’s information
  • ‘Save and continue’ on a form that does save a user’s information
  • ‘Add another’ to add another item to a list or group
  • ‘Pay’ to make a payment
  • ‘Sign out’ when a user is signed in to an account

It should be clear to users what will happen after interacting with a button.

You may need to include more or different words to better describe an action. For example, ‘add another person’ when asking users who makes up a household.

Default buttons

Use a default button for the main action on a page in a form or transaction. For example, continuing, saving or submitting information.

A default button should submit data or move a user through a flow.

Open this example in Storybook

Try not to have more than one default button on a page. Having multiple buttons makes it less clear which action the user should take.

If you think you need more than one, consider if you could use a secondary button.

Start buttons

Use a start button for the main call to action on a page that links straight into a form or linear transaction.

Start buttons do not usually submit form data and technically function the same as a link. They are styled to look like a default button with a chevron icon to the right-hand side.

Open this example in Storybook

Each transaction should have only one start button. This can either be placed on a:

  • simple start page
  • more detailed content page, where a process needs more explanation before a user starts

Always consider the starting point when you are designing a new form.

Use the button text ‘Start now’ on simple start pages where the title and content make the next step clear. For example, on a page titled ‘Request a repair’ where all the content relates to the request process.

If a start button is part of a more complex page, you may need to change the button text to be more descriptive. For example, ‘Nominate an advocate’ on a page that also explains eligibility and how advocacy works.

Do not use a start button to make a general link on a guidance page look more important.

Secondary buttons

Use a secondary button for supporting or optional actions which are not the main thing a user needs to do.

For example, an address lookup or ‘add another person’, when the default button is to continue the form.

Open this example in Storybook

Pages with several calls to action make it hard for users to know what to do next. If you need to add more than one secondary button, try to simplify the page or break the content down across multiple pages.

Warning buttons

Use a warning button if users should think carefully before taking an action. They only work if used very sparingly. Most services do not need one.

Open this example in Storybook

Only use warning buttons for actions with serious destructive consequences that cannot be easily undone. For example, permanently deleting an account.

When using a warning button, it’s a good idea to include an additional step which asks the user to confirm the action.

In this instance, use another style of button for the initial call to action, and a warning button to confirm.

Do not only rely on the red colour of a warning button to indicate a serious action. Not all users will be able to see the colour or will understand what it signifies. Make sure the context and button text make clear what will happen if the user selects it.

Disabled buttons

Disabled buttons have poor contrast and can confuse some users, so avoid them if possible.

Open this example in Storybook

Disabled buttons do not meet WCAG AA requirements for colour contrast. Only use them if research shows it makes the user interface easier to understand.

In most cases, it’s better to let users select a button then display an error message if they can’t proceed.

Stop users from accidentally sending information more than once

Sometimes, data may show that users accidentally double click a button and send information more than once.

If this causes a problem in your service, refer to GOV.UK’s guidance on using the prevent double click attribute.

For example, consider this if double-clicking is causing users to send multiple payments or create duplicate case records.

Research on this component

This component is based on the button component from the GOV.UK design system. It has been adapted with Camden styling, code, guidance and examples.

You can take part in the ‘Button’ discussion on GOV.UK’s Design System’s GitHub and share your research.

Updates

The button guidance has been rewritten with Camden-specific advice and examples.