Design guides

Check the Space Between Two Small Icon Buttons

·

Measure the region that actually responds to a pointer. A 16 px icon can sit within a wider button, and whitespace between controls can affect the spacing check. Start with a pair of 16 px buttons to see which measurements change the result.

Touch Target Size Checker

Compare a 4 px gap with an 8 px gap

Select Small icon button. Both modeled targets measure 16 × 16 CSS pixels. The right margin is 4 px, so the nearest edge of the neighbor lies 12 px from the first target's center. The neighbor's own spacing circle still overlaps the first circle because their centers are only 20 px apart.

Change Right margin to 8. Their centers are now 24 px apart and the circles meet at the boundary. The result reads Meets the modeled spacing exception. Clear All nearby targets are included to see how the result changes when other controls may still be nearby.

Compare a 4 px gap with an 8 px gap
GapDistance between centersResult for the modeled layout
4 px20 pxUndersized circles overlap
8 px24 pxSpacing clears the two circles

W3C, Understanding WCAG 2.2 Target Size (Minimum)

Add padding on the button that receives the click

Reset to Small icon button and enter 4 px for each padding side. The central target grows to 24 × 24 CSS pixels and passes the minimum size check. The diagram distinguishes the 16 px content from the padded region.

Move the right margin to −8 px while the neighbor is still present. The model excludes the overlap for these separate actions and centers any spacing circles on the bounds of the remaining hit areas. Use browser DevTools on the actual layout to check which element receives clicks along the shared edge.

W3C, Understanding WCAG 2.2 Target Size (Minimum)W3C, CSS Box Model Level 3

Save measurements for the breakpoint you tested

Choose Download JSON report to record the inputs, placed rectangles, center distances, and result in CSS pixels. When comparing layouts, use the same viewport state and measure edge gaps between the visible neighbors.

Choose Standard button to compare the enhanced check. Its 84 × 44 CSS pixel rectangle fits a 44 px square. The enhanced criterion has its own exceptions. For compact layouts also review keyboard focus, responsive reflow and alternative controls on the same page.

W3C, Understanding WCAG Target Size (Enhanced)

Common questions

Should I enter the box measurement from DevTools as content?

If the reported box already includes all clickable padding, use that measurement with zero added padding. If DevTools gives separate content and padding values, enter each separately.

Why can a circle fail even when it clears the next button?

When the next button is also undersized, its own 24 px circle can extend into the gap. Both shapes are checked.

Sources

Put it into practice.

Related guides