Menu

Minimum Touch Target Size: WCAG, iOS, Android and Tailwind
📰

Minimum Touch Target Size: WCAG, iOS, Android and Tailwind

DEV Community: css·Serban Dan Rusu·19 days ago
#T4gqBsv8
#devtocss#devto#dev#pointer#coarse
Reading 0:00
15s threshold

TL;DR

The minimum touch target size is 24 by 24 CSS pixels for WCAG 2.2 level AA, 44 by 44 for level AAA and for Apple's default iOS control, and 48 by 48 dp in Material and Android guidance. For a React web app, aim for 44px under the pointer: coarse media query and keep compact sizes for a mouse. In Tailwind CSS v4.1 and later that means pointer-coarse:h-11 on controls with room to grow and an invisible ::after hit area on icons and checkboxes that must stay small.

Ask what the minimum touch target size is and you get four numbers: 24, 28, 44 and 48. They come from different documents, in different units, and two of them are floors that nobody should design to. This tutorial sorts out what WCAG 2.2, Apple and Android ask for, picks one number for a React web app, and builds it in Tailwind CSS v4.1: buttons, icon buttons and checkboxes that take 44px taps on a phone while the desktop keeps its 32px and 40px controls.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.