# axe target-size: Control too small

The finding means a link or button is smaller than 24 by 24 CSS pixels and also lacks enough space around it. Icon buttons, page numbers, carousel dots and tightly stacked link lists are the usual suspects. Add padding to the control itself, or leave more room between the targets.

## The message

- Identifier: `target-size`
- Type of check: automatic
- Severity: moderate
- Success criterion: [WCAG 2.5.8 Target Size (Minimum)](https://barrierepruefung.de/en/knowledge/wcag/2-5-8-target-size-minimum)
- Meaning: The clickable area is smaller than 24 by 24 pixels, and there is no sufficient spacing to neighbouring targets either.
- Impact: People who cannot hold their hand steady, or who tap on a small screen, miss the target or hit the wrong one.
- Fix: Enlarge the control to at least 24 by 24 pixels, for instance with padding, or move the targets further apart.

## What the rule checks

axe looks at every focusable control: links, buttons, form fields and elements with a widget role.
Links inside running text are left out, because the criterion has an exception for them. It measures
the largest area of the element that no other control covers. If that area reaches 24 by 24 CSS
pixels, the target passes. Anything that is not a control, such as a badge or a graphic, is not
subtracted from the area. A target that lies completely underneath another element passes this
rule.

If the target is smaller, axe checks the spacing instead: a circle 24 pixels in diameter around its
centre must not intersect another target, nor the circle of another undersized target. The rule only
reports the target when both checks fail. When the content spills beyond the area, the size cannot be
measured reliably, and the spot appears as an uncertain result with a screenshot for review.

2.5.8 Target Size (Minimum) (Level AA) belongs to WCAG 2.2. When the check runs against WCAG 2.1, the finding is listed as
a recommendation in the report.

## Common causes

- **Icon buttons the size of their icon.** Close crosses, search magnifiers, social media icons: the
  link or button is exactly as large as the image inside it.
- **Page numbers and carousel dots.** Small targets packed closely together, so that their circles
  overlap.
- **Link lists in small type.** Links stacked in the footer with little line spacing, almost
  touching each other.
- **Overlap by neighbours.** A neighbouring link or button reaches into the area through a negative
  margin or absolute positioning, so less than 24 by 24 pixels of the target remain free.

## How to fix it

Enlarge the control, not the icon. Padding increases the clickable area without changing the design:

```html
<button type="button" class="icon-button" aria-label="Close">
  <svg aria-hidden="true" width="16" height="16">…</svg>
</button>
```

```css
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 4px;
}
```

Where targets have to stay small, spacing is enough. Technique C42 places each target in a container
of at least 24 by 24 pixels, so that the circles never touch. With flexbox it sits centred there in
both directions:

```css
.pagination ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin: 3px;
}
```

Stacked links get vertical padding:

```css
.footer a {
  display: inline-block;
  min-height: 24px;
  padding-block: 4px;
}
```

The other exceptions of the criterion are explained on the page
[about WCAG 2.5.8](https://barrierepruefung.de/en/knowledge/wcag/2-5-8-target-size-minimum).

## Sources

- [Deque University: target-size (axe-core 4.13)](https://dequeuniversity.com/rules/axe/4.13/target-size), retrieved on 2026-11-27
- [W3C Understanding Success Criterion 2.5.8: Target Size (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum), retrieved on 2026-11-27
- [W3C Techniques, C42: Using min-height and min-width on target container to ensure sufficient target spacing](https://www.w3.org/WAI/WCAG22/Techniques/css/C42), retrieved on 2026-11-27

---

As of: 2026-11-29 · https://barrierepruefung.de/en/knowledge/rules/target-size
