Designio

Button design basics: size, labels and states

Buttons are where people act, so small problems here have outsized effects. Good buttons look clickable, say what will happen and respond when used.

Size for fingers

Aim for a tap target of about 44 by 44 pixels on touch screens, with enough space between neighbors to prevent mistaken taps. WCAG 2.2 sets a lower minimum of 24 by 24 pixels at level AA, but more room is better.

Write clear labels

Start with a verb and say what happens: Download invoice, Create account or Save changes. Avoid vague words such as Submit or Click here. Use the same word through the whole flow, so a Publish button leads to a Published message.

Use one primary action

Each screen should have one main button. Secondary actions can use an outline or plain text style. If every button is bold, people have to read them all to decide.

Design every state

Plan for default, hover, keyboard focus, pressed, disabled and loading states. A visible focus outline matters for keyboard users. During a slow action, a loading state prevents double clicks.

Check contrast

Button text needs 4.5:1 against its background, and the button shape should be easy to see. An outline button needs at least 3:1 between its border and the page if the border is what identifies it.

Keep reading