Skip to content

ACT-006 Make every pointer target at least 24 by 24 pixels, or pass the 24-pixel spacing test

Level
Rule
Verdict
Requirement
Status
decided, version 1.0.3

Rule

Make every target that people press with a pointer at least 24 by 24 CSS pixels, or place it so that a circle 24 CSS pixels across, centred on its bounding box, touches no other target and no other small target's circle.

Examples

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

Do: Two full-size buttons beside the field

Wool socks

£6 a pair

Decrease quantity and Increase quantity are 40 pixels square with a gap between them and the field. The dashed boxes show each target in the product row, and every box is at least 24 by 24, so each target passes on size and needs no spacing test. Press plus or minus and the new quantity is announced.

Don't: Stacked arrows, 24 by 10

Wool socks

£6 a pair

The two arrows are 10 pixels tall and touch, so each gets a 24-pixel circle for the spacing test. The circles overlap each other and the other arrow, so the arrows fail both the size test and the spacing test. Press the top arrow near its lower edge: a little off, and you press the other one.

Why

A small target is hard to hit for anyone with a tremor, stiff fingers, a shaky bus ride or a worn trackpad. A near miss either does nothing or, worse, presses the button next to it. This applies to every kind of pointer, so mouse, pen and touch all count, not only phones. WCAG 2.2, 2.5.8 Target Size (Minimum) requires it at Level AA.

The size test is exact. An upright 24 by 24 CSS pixel square must fit entirely inside the area that responds to the pointer. A target that is smaller can still pass on spacing: draw a 24-pixel circle on the centre of its bounding box. If that circle reaches no other target, and does not overlap the circle of any other small target, the target passes. "Leave some room" is not enough; the circle is the test. Measure what can be pressed at the time of testing. While a slide-in Cart panel covers half of a product list, the hidden buttons are not measured; the buttons in the panel are, and so is whatever part of the list is still in view.

Our advice goes further than the law, and we mark it as advice only. For touch, aim for 44 CSS pixels or more, and give primary actions extra room, such as 48. The 44 figure is the size in 2.5.5 Target Size (Enhanced), which is Level AAA and not part of what WCAG 2.2 AA requires. The 48 figure is our own and does not come from WCAG. Prefer meeting 24 by size over leaning on the spacing test. Size is one measurement per target, with no neighbours to check, and it keeps passing when someone tightens the layout or it reflows on a narrow screen.

Do

  • Give an icon-only button such as Edit a hit area of at least 24 by 24, even when the pencil icon is 16. Padding around the icon counts, because it responds to the pointer.
  • Measure the area that responds, not the drawing. Justified's Checkbox and RadioGroupItem each get a square target area of 24 by 24, even though the drawn box is smaller. The Switch's area is its 44 by 24 track grown by 2 pixels on every side, a rectangle of 48 by 28. All three meet the size test. Do not shrink them with a className, and keep the root font size at 16 pixels or more, or that area falls under 24.
  • Check rounded shapes with the square, not the outline. A round Like button 24 pixels across fails the size test, because a 24-pixel square does not fit inside the circle. It can still pass on spacing when nothing else you can press is close to it. If something is, give it a square or larger hit area.
  • A lone 16-pixel i button next to the heading Delivery address can pass on spacing. Its circle reaches 4 pixels past each side, so the button passes as long as no other target sits within that reach. If a link is added right beside it later, it fails, so a 24-pixel button is the safer choice.
  • Treat a slider such as Volume as one target: the whole track responds, so measure the track. A separate drag handle, like the corner that resizes a Comments panel, is its own target and must pass on its own, and needs a way without dragging, as ACT-007a says.
  • Keep the close icon in a dialog header, Close, at 24 or more, or clear of the other header actions by the circle test. DLG-001 ties Escape to that icon; the icon still has to be easy to press.
  • When the viewport is narrow, let a button row wrap instead of shrinking its targets or closing their gaps. At 320 CSS pixels, LAY-001 and this rule apply at once.
  • Offer a compact layout, such as a denser table for Invoices, only as a choice the person turns on, and keep the control that turns it off at full size.

Don't

  • Stack Increase and Decrease arrows in a quantity field, each 24 wide and 10 tall, directly on top of each other. Each arrow's circle runs into the other arrow.
  • Number the pages of a search result 1, 2, 3 as 16-pixel links with 2 pixels between them. Their circles overlap.
  • Shrink a checkbox's target under 24 and rely on its label to make it pass, unless the label itself meets 24 by 24 or the spacing test. The visible label from FRM-001 counts as the same control only when it passes on its own. That the label responds to a press at all is FRM-016a.
  • Argue that a target is fine because it grows when people zoom in. CSS pixel sizes stay the same at any zoom, so zoom never turns a fail into a pass.
  • Let two targets overlap and count the shared part toward both, unless they do the same thing.
  • Turn on a dense mode by default that pushes buttons under 24.

Exceptions

  • Inline. A target that sits in a line of text and takes its size from that text is outside the rule, such as the link terms in "I accept the terms".
  • Equivalent. A small control is excused when another control on the same page does the same job and passes. A compact Share icon on each card is fine if a full-size Share button for the same item is also on the page.
  • User agent. A control the browser draws at its default size, such as an unstyled native radio button, is excused while you leave its size alone. Once you restyle it, for example to make it smaller, it must pass.
  • Essential. When the size or position carries the meaning, or a law sets the layout, the target is excused. Offer a larger alternative where you can.

Verdict

Requirement. Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work

Stances on ACT-006
SourceRoleStancePage
WCAG 2.2LawRequires2.5.8 Target Size (Minimum)
Material DesignJudge SupportsAccessibility designing: structure
Text fields: guidelines
Apple Human Interface GuidelinesJudge SupportsAccessibility
Buttons
Carbon Design SystemJudge No position
GOV.UK Design SystemExpert witness No position
Nielsen Norman GroupExpert witness Opposes, dissentingTouch Targets on Touchscreens, by Aurora Harley

Dissenting opinion: Nielsen Norman Group.

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-016a for a label that responds to a press.
  • Version 1.0.2, : Points to ACT-007a for a drag handle.
  • 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