Find Help for Every Part of SimplifyAccess

How to Size and Space Buttons and Tap Targets – WCAG 2.5.8

Learn how to size and space clickable controls, measure tap targets, and apply the exceptions in WCAG 2.5.8.

Search titles, topics, and tags. Articles matching more keywords appear first.

Published
Author
SimplifyAccess Team
Updated

On a phone, two tightly packed icons can make it easy to tap Delete while aiming for Edit. Small click areas also cause problems for people who use a mouse, stylus, or other pointer and have limited dexterity or hand tremors. Give people enough room to activate the intended control.

What does WCAG require?

Target Size (Minimum), 2.5.8, is Level AA and was introduced in WCAG 2.2. A pointer target is the area that responds to a click or tap. It generally needs to contain a 24 × 24 CSS pixel square. CSS pixels are the units browsers use for layout.

There are five exceptions.

  • Spacing. Center an imaginary 24 CSS pixel diameter circle on the bounding box of each undersized target. The circle must stay clear of other targets and the circles for other undersized targets.
  • Equivalent control. A different control on the same page provides the same function and meets the criterion.
  • Inline. The target sits within a sentence, or its dimensions are limited by the line height of surrounding non-target text.
  • Browser-controlled size. The browser or other user agent determines the size and the website has left it unmodified.
  • Essential presentation. The presentation is essential to conveying the information or legally required for that purpose. A map pin's position may be essential to communicating its location.

Common accessibility issues

  • A tiny toolbar icon receives clicks while the space around it is inactive.
  • Closely stacked menu items leave too little separation between undersized targets.
  • A compact dialog puts its close button directly beside another control that responds to a tap.

How to improve accessibility

Apply padding to the clickable button or link itself. A 16-pixel icon can sit inside a larger button while keeping its visual size. In shared toolbars and menus, enlarge the actual hit areas and use consistent gaps. Check the compact version of each component as well as its desktop layout.

.icon-action {
  display: inline-grid;
  place-items: center;
  min-inline-size: 24px;
  min-block-size: 24px;
}

Apply this class to the button. For common touch actions, consider making the area bigger than the AA minimum.

Understanding automated and manual checks

Automated checks can flag some small or tightly spaced targets in the rendered state. Manually measure the active area in CSS pixels and test whether taps near its edges trigger the intended action. Inspect open menus, dialogs, and compact layouts. For any undersized target, verify the spacing calculation or document which other exception applies. Zoom can help an individual user aim. Measure the criterion in CSS pixels independently of browser zoom.

Use the SimplifyAccess Compliance Assessment to record manual findings for this criterion. Include the page, component state, measured dimensions, and the reason for any exception you apply.

Related accessibility requirements

WCAG 2.5.5 Target Size (Enhanced) sets a 44 × 44 CSS pixel threshold at Level AAA, with its own exceptions. WCAG 4.1.2 Name, Role, Value covers the information controls expose to assistive technology, including the name of an icon-only button.

Official reference

W3C Understanding WCAG 2.2 – 2.5.8 Target Size (Minimum)

Continue in SimplifyAccess

Ready to Put This Guide Into Practice?

Create a SimplifyAccess account to manage connected websites, review accessibility findings, work with accessible-content workflows, configure visitor tools, and create reports from one platform.

Already have an account? Log in to continue with the website, setting, audit, content workflow, or report covered in this guide.

Available features, processing options, and editing capabilities depend on the connected website and selected plan.