Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute 16 seconds

Touch a Mac and the buttons grow

The rule

Size targets by input, not by device: give a finger a 44 px hit area around the same 16 px icon, make the whole row tappable, switch sizes with (any-pointer: coarse) and keep at least 24 × 24 px for a cursor.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the interface I share and size its targets by input, not by device. Fix what fails, and change nothing else.

1. Touch targets: give every control a finger can tap a hit area of at least 44 px. Grow the hit area with padding, not the icon: a 16 px icon stays 16 px.
2. Labels: make the whole row tappable, not only the 16 px checkbox. Wrap the row in its label.
3. Media query: apply the touch sizes inside one @media (any-pointer: coarse) block. Plain (pointer: coarse) only checks the main input, so it misses touchscreen laptops.
4. Cursors: outside that block, keep every target at least 24 x 24 px (WCAG 2.5.8).

Keep the content, the features, the icons and their sizes. When you are done, list what you changed under each of the four headings.

More prompts like this in the free guide 

The problem

The new MacBook Pro has a touchscreen, and on touch its window buttons grow. Most web apps don't. The notifications card in the video was built for a cursor. Its two buttons are 24 px wide, so one fingertip covers both. In each row, only the 16 px box responds to a tap.

The fix

Size targets by input, not by device.

  1. Targets. Give fingers a 44 px hit area, Apple's minimum. Grow it with padding, not the icon: the 16 px icon stays the same.
  2. Labels. Make the whole row tappable. Wrap the row in its label and the target becomes 320 × 44 px.
  3. Media query. Ask for (any-pointer: coarse). Plain (pointer: coarse) only checks the main input. On a touch laptop that is a trackpad, so it never matches.
  4. Cursors. Keep at least 24 × 24 px, the WCAG minimum (2.5.8).

Why it works

One fingertip covers two 24 px buttons. At 44 px, each button has room for one. The checkbox is 16 px and its row is twenty times wider, so the row should take the tap. any-pointer: coarse sees every input, where pointer: coarse sees only the main one. You end with 24 px for a cursor and 44 px for a finger, and the input decides which.

How to apply it

On one screen, find every control a finger might press. Pad each one out to 44 px and leave its icon alone. Wrap every checkbox row in its label. Put the touch sizes inside one (any-pointer: coarse) block, then check that a cursor still gets at least 24 × 24 px.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on interaction

All 8 lessons on interaction