AccessLens

How to fix: “All touch targets must be 24px large, or leave sufficient space”

Buttons and links too small to tap, explained in plain English, with the exact fix and code you can copy.

Scanner rule:
target-size
Standard:
WCAG 2.5.8 Target Size (Minimum) (Level AA)

What this error means

Buttons, icons and links need to be big enough to hit reliably. WCAG 2.2, the newest version of the standard, requires each clickable target to be at least 24 by 24 CSS pixels. A smaller target is still allowed if there is enough empty space around it: imagine a 24-pixel circle centered on the target, and it must not overlap any other target. There are also exceptions for links inside a sentence, for controls the browser draws itself, and for cases where a bigger control on the same page does the same thing. This criterion is new in WCAG 2.2, so older scanners and older legal references do not mention it yet.

Who it affects

People with tremors, limited hand control or large fingers, people using a mouse with difficulty, and anyone tapping on a phone while walking or on a bus. Tiny, crowded targets cause mis-taps for everyone.

Where it usually hides

  • Icon buttons such as close (x) buttons on pop-ups and cookie banners
  • Social media and share icons packed closely together
  • Pagination numbers and carousel dots
  • Footer or sidebar link lists with very tight line spacing
  • Custom checkboxes, radio buttons and star ratings

How to fix it

  1. Find the flagged element from the scan report and note its current size. Browser DevTools shows the width and height when you hover the element.
  2. Make the clickable area at least 24 by 24 pixels. Add padding or set a minimum width and height, rather than only making the icon itself bigger.
  3. If you cannot enlarge a target, add enough space around it so that a 24px circle centered on it would not overlap its neighbors.
  4. Aim higher where you can. 44 by 44 pixels is a more comfortable size for touch screens, and it is what many design systems recommend.
  5. Do not worry about links inside a sentence or paragraph. Those are exempt.

Before and after

Before

.icon-btn {
  width: 16px;
  height: 16px;
}

A 16px target: too small to tap reliably.

After

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

The icon can stay the same size; the tappable area grows. 24px is the minimum to pass, 44px is kinder.

On your website platform

WordPress, Shopify, Wix and Squarespace

Most of these come from the theme's own icons and menus. Look in the theme settings for spacing or button-size options. If there is none, add a small block of custom CSS (every platform has a custom CSS field) to enlarge the hit area of the flagged class.

Common mistakes

  • Enlarging the icon image but leaving the clickable element the same size.
  • Adding padding that makes neighboring targets overlap each other.
  • Fixing the desktop layout only. Check the phone layout, where it matters most.

How to check your fix

  • Re-run a scan and confirm the target-size issue is gone.
  • In Chrome DevTools, hover the element and read its size. Both width and height should be at least 24px, or the spacing rule should be met.
  • Try tapping every small control on your phone with one thumb. If you mis-tap, so will your visitors.

Is this on your site?

Run a free scan and see every page and element affected. No account needed.

Questions people ask

Is target size required by the ADA?

The ADA does not name a technical standard for private websites. Most settlements and court references still point to WCAG 2.1 AA, so target size is a newer item. It is part of WCAG 2.2 Level AA and it helps every mobile visitor, so it is worth fixing, usually with a few lines of CSS.

Do links inside a paragraph need to be 24 pixels tall?

No. Links that sit inside a sentence or block of text are exempt, because their size is set by the surrounding text.

What is the difference between 24px and 44px?

24 by 24 CSS pixels is the WCAG 2.2 minimum at Level AA. 44 by 44 is the size used in the stricter, higher-level WCAG criterion and in common mobile design guidelines. It is easier to tap, so use it where you have room.

Keep reading

Automated scans catch only part of what WCAG covers, and fixing a scan result is not a legal guarantee of compliance. Last reviewed November 16, 2026.