Skip to content

ACT-003b Put a page's buttons in the part they act on and keep them in the same place

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

Rule

On a page, put a button that acts on one part inside that part, and a button that acts on the whole page in the page's own header, action bar or floating button. Give the same task the same area and position on every page at a given window size.

Examples

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

Do: Each form has its own save button

Account

Delivery address

Newsletter

Each save button sits at the end of the fields it saves. Tick Send me the monthly newsletter and press Save preferences: "Preferences saved." appears under that form and stays, and the address form does not change. Save address works the same way for its own form.

Don't: One save button at the top of the page

Account

Delivery address
Newsletter
A single Save changes sits beside the title, far from both forms. Tick the newsletter box and press it: "Changes saved." does not say whether it saved the address, the newsletter or both.

Why

People read a button through what surrounds it. A button inside a card is taken to act on that card, and one beside the page title is taken to act on the page. When a button sits somewhere else, people have to guess what it will change, and a wrong guess can save, send or remove the wrong thing. Keeping a task in one place also lets people stop searching: after a few pages, they reach for it without looking. The same holds for keyboard and screen reader users, as long as a button that looks inside a part is also inside it in the code, which LAY-002 asks for. WCAG 2.2, 3.2.3 Consistent Navigation and WCAG 2.2, 3.2.4 Consistent Identification point the same way, but they cover repeated navigation and how components are named, not where ordinary buttons sit. This rule covers more than either and is our choice, not something WCAG requires.

Do

  • A recipe page shows a card for each recipe. Save recipe and Print sit inside each card, so it is plain which recipe they act on.
  • A bike repair shop's booking page has Book a repair in the page header, next to the title Repairs, because it starts something for the whole page.
  • A school timetable page has a table of lessons. Add lesson sits in the table's own toolbar, and Swap lesson sits in the row of the lesson it changes.
  • When a teacher ticks several lessons, Cancel lessons appears with the selection and acts only on the ticked rows.
  • An account page holds two small forms, Delivery address and Newsletter. Each has its own Save address or Save preferences at the end of its own fields.
  • Add stop sits in the header beside the title on every route page of a delivery planner. On a phone it moves into a bar at the bottom of the screen, and it is in that same bar on every route page.
  • At 320 pixels, a route page puts Optimise route, Reverse order and Clear stops in a menu button labelled Route actions in its header. All three are still there, as LAY-001 asks, and the menu holds them in the same order on every route page.
  • A page bar that stays on screen while the page scrolls never completely covers the focused field or button, as KBD-002 asks.

Don't

  • Put Delete photo in the page header of a gallery, far from the photo it removes. Put it on the photo's card or in its row.
  • Place a single Save at the top of a page with three separate forms, so no one knows which one it saves.
  • Put New booking, which acts on the whole page, inside the first card of a list of bookings.
  • Put Order parts in the header on one product page and at the bottom of the description on the next.
  • Put the language picker or Contact support in one page's own header. They belong to the product's top bar, which is shown on every page.
  • Show Swap lesson inside a row on screen while the code places it after the table. LAY-002 does not allow that.

Exceptions

  • Dialogs, sheets and side panels. This rule does not apply to them. ACT-003a covers the order of a dialog's action buttons.
  • A page that is one whole form. This rule does not decide whether its sending button comes after the last field or sits in the page's header or bar.
  • Different window sizes. A task may move to another area when the window gets much smaller or larger, as long as it is in the same place on every page at that size.
  • Sides. This rule says nothing about left, right, leading or trailing on a page.
  • The product's top bar. Controls for the whole product, such as the language picker and Contact support, sit in the bar that is shown on every page, not in one page's header. There they follow the last part of this rule: the same place on every page.

Verdict

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

Stances on ACT-003b
SourceRoleStancePage
WCAG 2.2LawSupports3.2.3 Consistent Navigation
WCAG 2.2LawSupports3.2.4 Consistent Identification
Material DesignJudge SupportsButtons: guidelines
Top app bar: guidelines
Toolbars: guidelines
FAB: guidelines
Extended FAB: guidelines
Apple Human Interface GuidelinesJudge SupportsToolbars (all platforms; written for native apps, not the web)
Buttons
Layout
Carbon Design SystemJudge SupportsForms
Button: usage
Data table: usage
UI shell header: usage
Global header
Common actions
GOV.UK Design SystemExpert witness SupportsButton
Question pages
Page template
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.1, : Names the part of the rule the top bar follows.
  • 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