Touch targets must be at least 24 by 24 pixels, or well spaced
Buttons, links and other controls must be at least 24 by 24 CSS pixels, or have enough space around them, so people can tap or click them without hitting a neighbor.
| Rule ID | target-size |
|---|---|
| Impact | Serious |
| Success criterion | 2.5.8 Target Size (Minimum) · AA |
| Standards | WCAG 2.2 |
| Fixed automatically |
Example
<style>
.qty button { width: 16px; height: 16px; margin: 0; }
</style>
<div class="qty">
<button aria-label="Decrease">−</button>
<button aria-label="Increase">+</button>
</div>On a phone, tapping "+" often hits "−": shoppers end up with the wrong quantity.
<style>
.qty button { width: 32px; height: 32px; margin: 0 4px; }
</style>
<div class="qty">
<button aria-label="Decrease">−</button>
<button aria-label="Increase">+</button>
</div>Each button is large enough to tap reliably, even with a shaky hand.
Why it matters
People with tremors, Parkinson's disease, arthritis or limited dexterity find small targets hard to hit, and so does anyone using a phone with one hand, on a bus or with large fingers. Small controls placed close together lead to wrong taps: the wrong quantity, the wrong date, a deleted item instead of an edited one.
WCAG 2.2 introduced this level AA requirement (2.5.8) with a 24 by 24 pixel minimum. Larger targets also lower error rates and frustration for every mobile visitor, which shows up directly in completed checkouts and bookings.
How to fix it
Make the control bigger. Padding counts toward the target, so an icon can stay small while its button grows:
<style>
.icon-btn { min-width: 24px; min-height: 24px; padding: 8px; }
</style>
<button class="icon-btn" aria-label="Close"><svg width="12" height="12" aria-hidden="true">…</svg></button>
Or add space. A target smaller than 24px passes when a 24px circle centered on it does not overlap another target or its circle. In practice, leave enough margin between small controls:
<style>
.social a { display: inline-block; width: 20px; height: 20px; margin: 0 6px; }
</style>
Common trouble spots:
- Pagination numbers, calendar days and star ratings: set a minimum cell size.
- Close buttons on banners and dialogs: give the button padding, not just the × glyph.
- Lists of small links in footers: add line height or vertical padding.
Exceptions. Links inside a sentence, controls whose size the browser sets (unstyled checkboxes), and targets where a larger equivalent exists elsewhere on the page are allowed to stay small.
For mobile-first designs, 44 by 44 pixels is a more comfortable goal.
Checklist
- Make controls at least 24 by 24 CSS pixels.
- Use padding to grow small icon buttons.
- Leave space between small, adjacent targets.
- Check pagination, calendars and close buttons.
How the check works
The check measures focusable controls that are not inline in text. It passes when the target is at least 24 by 24 pixels, or when a 24px circle around its center does not overlap any neighboring target. It fails otherwise. When targets overlap partly or are covered by other elements, it asks for a manual review. Exceptions such as an equivalent larger control need human judgement.
Resources
Updated October 27, 2026