ACT-002b Use at most one primary button on a page
- Level
- Rule
- Verdict
- Majority (2 of 3)
- Area
- Actions
- Status
- decided, version 1.0.2
Rule
Give a page at most one button in the most emphasised style, default or destructive, for the main task of the page; a dialog, sheet or side panel counts as its own page while it is open, and the actions of other sections, cards and smaller tasks use less emphasised styles.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: One filled button for the page's main task
My profile
Change password
Last changed 3 months ago.
Export your data
A file with your profile and settings.
Don't: A filled button in every section
My profile
Change password
Last changed 3 months ago.
Export your data
A file with your profile and settings.
Why
A page usually exists for one main task. When that task's button is the only filled one, people find the way forward without reading the whole page. Each extra filled button pulls the eye away from it, and with three or four the page no longer says what comes next. Quieter styles for the smaller tasks keep them available without competing. This rule is about how buttons look, not about focus or Enter. No WCAG criterion asks for one primary button per page, so this rule is our choice.
Our reasons
Most of the judges back this rule, and one disagrees. We keep the limit at one, for three reasons.
- The signal stays sharp. Two filled buttons on a page already ask the person to compare them. One leaves no doubt about the main task.
- A second task often means a second page. When two actions both feel like the main one, the page is often doing two jobs. Splitting it, or moving one task into a dialog, usually helps more than a second filled button.
- Dialogs and panels have their own. A dialog, sheet or side panel gets its own primary button, so the limit does not stop a focused sub-task from having a clear way forward.
Do
- A page My profile has Save profile in
variant="default". The section Change password below has Change password invariant="outline", and a card Export your data has Export invariant="ghost". - A list page Members has Invite member in
variant="default". Each row's Edit usesvariant="ghost". - Pressing Invite member opens a dialog. Its Send invitation is filled, because the dialog counts as its own page while it is open.
- A side panel Filter has Show results in
variant="default"while the page behind it keeps its own primary button. - A settings page where no task is the main one has no button in the most emphasised style. Each section uses
variant="outline"orvariant="secondary".
Don't
- Give every section of Settings its own filled Save button.
- Put a filled Try it free in a banner above a page whose main task is Place order, which is also filled.
- Give every card in a grid of offers a filled Choose button. Use a quieter style, or make the cards themselves the choice.
- Put a filled
variant="destructive"Delete list beside the page's filled Save list. A destructive button counts toward the limit. Only a page made for the deletion, such as Clear old logs, may use it as its one emphasised button.
Exceptions
- Dialogs, sheets and side panels. Each one counts as its own page while it is open.
- The product's top bar. A bar shown on every page, such as one with Sign in, counts on its own and does not take the page's one most emphasised button.
- No main task. A page may have no button in the most emphasised style. This rule sets a limit, never a minimum.
- Within a group. How the buttons shown together for one task or decision relate to each other is covered by ACT-002a. A page that follows this rule also follows ACT-002a, except in the product's top bar. They are two rules because their verdicts differ.
Verdict
Majority (2 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | – No criterion applies | |
| Material Design | Judge | Supports | Buttons: guidelines |
| Apple Human Interface Guidelines | Judge | Opposes | Buttons |
| Carbon Design System | Judge | Supports | Button: usage Common actions |
| GOV.UK Design System | Expert witness | Supports | Button Question pages |
| Nielsen Norman Group | Expert witness | No position |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.2, : Says how this rule relates to ACT-002a.
- Version 1.0.1, : Examples in English.
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Actions: 11 rules and 4 guidelines · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.