Skip to content

ACT-002a Give at most one button in a group the most emphasised style

Level
Rule
Verdict
Unanimous (3 of 3)
Status
decided, version 1.0.3

Rule

Among the buttons shown together for one task or decision, such as the action row of a form, dialog, sheet or card, give at most one the most emphasised style, for the action most people want there, and give every other button a less emphasised style; a group may have no emphasised button at all.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: One filled button in the row

Book an appointment

Only Book appointment is filled, so the eye goes to it first. Book and pay now and Cancel are quieter but easy to find. Press any of them: the line below says what happened.

Don't: Two filled buttons side by side

Book an appointment

Book and pay now and Book appointment are both filled. Neither stands out as the main action, so the person has to read and weigh both before choosing.

Why

A filled button tells the eye where to go first. When two buttons in the same row are both filled, that signal cancels out, and the person has to read every label and weigh them before they can act. One strong button and quieter ones around it make the likely next step plain at a glance, while the other choices stay easy to find. This rule is about how buttons look. It does not decide which button has focus or what Enter does; for destructive confirmations DLG-004 decides that. No WCAG criterion asks for one emphasised button, so this rule is our choice.

Do

  • A form Book an appointment ends with Book appointment in variant="default" and Cancel in variant="outline".
  • A dialog Rename folder has Save name in variant="default" and Cancel in variant="ghost".
  • A card Monthly report, October has Open report in variant="secondary" and Download PDF in variant="ghost". Neither uses the most emphasised style.
  • A confirmation "Delete the project Autumn 2026?" has Delete project in variant="destructive" and Cancel in variant="outline". The red button is that dialog's one emphasised button, as DLG-005 says.
  • A form Edit contact has Save contact in variant="default". Delete contact sits in the same row in variant="outline", with a label that names what it removes. Pressing it removes the contact at once and offers Undo, with no question, as DST-001a says.
  • A sheet asks "Which copy do you want to keep?" with Keep the new one and Keep the old one. Neither is clearly the main choice, so both use variant="outline".

Don't

  • Put Save contact in variant="default" and Delete contact in variant="destructive" side by side. Justified's Button has no quieter danger variant, so pick a less emphasised style for the delete action or move it out of the group.
  • Fill Cancel as well as Delete project in a confirmation, or fill Cancel instead, to steer people away from deleting.
  • Force a filled button onto a group where no action is clearly the main one.
  • End the form Book an appointment with both Book appointment and Book and pay now in variant="default".

Exceptions

  • No clear main action. A group may have no emphasised button. This rule sets a limit, never a minimum.
  • Focus and Enter. Which button takes focus first and what Enter does are outside this rule. DLG-004 covers destructive confirmations, and FRM-015 what Enter does in a form.
  • The whole page. How many primary buttons a page may hold is covered by ACT-002b. That rule is the stricter one: a page that follows it also follows this rule, except in the product's top bar. They are two rules because their verdicts differ.

Verdict

Unanimous (3 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work

Stances on ACT-002a
SourceRoleStancePage
WCAG 2.2Law– No criterion applies
Material DesignJudge SupportsButtons: guidelines
Dialogs: guidelines
Apple Human Interface GuidelinesJudge SupportsButtons
Alerts
Sheets
Carbon Design SystemJudge SupportsButton: usage
Dialogs
Modal: usage
Forms
Common actions
GOV.UK Design SystemExpert witness SupportsButton
Nielsen Norman GroupExpert witness SupportsOK-Cancel or Cancel-OK? The Trouble With Buttons, by Jakob Nielsen

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.3, : Points to FRM-015 for what Enter does in a form.
  • Version 1.0.2, : Says how this rule relates to ACT-002b.
  • 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