Sub topic 4
Touch targets and thumb reach
This chapter assumes you can write semantic HTML, use flexbox, and write CSS media queries. It also assumes you know what the viewport meta tag does. The chapter covers how big navigation controls must be on a touch screen and where on the screen they should sit. Every pattern later in the tutorial depends on both.
Why a mouse pointer and a thumb are different tools
A mouse pointer is a single pixel. A fingertip is a pad of skin roughly 10 to 16 mm wide that covers many pixels and hides what it touches. Three differences follow from that:
- No precision. The browser has to guess which element you meant. If two links sit close together, you will sometimes hit the wrong one.
- No hover. A touch screen cannot show a tooltip or a hover menu before you commit to a tap.
- Position matters physically. On a desktop every pixel costs the same effort to reach. On a phone, your hand has to travel there.
A target is any element a user can activate: a link, button, form control, or <summary>. A touch target is its tappable area, which can be larger than what the user sees.
How big a target must be
Several sources give minimums. They use different units, and that is a common source of confusion.
| Source | Minimum | Unit | Level |
|---|---|---|---|
| WCAG 2.2, SC 2.5.8 Target Size (Minimum) | 24 × 24 | CSS pixels | AA (required for conformance) |
| WCAG 2.2, SC 2.5.5 Target Size (Enhanced) | 44 × 44 | CSS pixels | AAA (recommended) |
| Apple Human Interface Guidelines | 44 × 44 | points | Guideline |
| Material Design | 48 × 48 | dp, with about 8 dp between targets | Guideline |
A CSS pixel is not a physical pixel. Browsers map it to roughly the same physical size across devices. Points and dp behave similarly, so 44 CSS px, 44 pt and about 44 dp come out close to the same physical size, a little under 7 mm.
Treat 24 px as the legal floor and 44 to 48 px as the design target. A navigation bar is used constantly, so it should not sit at the floor.
SC 2.5.8 has exceptions. A target smaller than 24 px passes if a 24 px circle centered on it does not touch another target. Inline links inside a sentence are exempt, and so are controls whose size the browser sets and you have not changed. Navigation links are not inline text, so none of these exceptions covers them.
Size is the box, not the glyph
A link whose text is 16 px tall is not a 16 px target if the <a> has padding. The target is the element's rendered box. Make the whole row tappable instead of only the words:
nav a {
display: block;
min-height: 2.75rem;
padding: 0.75rem 1rem;
}This sketch uses rem so the target grows when the user raises their default font size. At the default 16 px, 2.75rem is 44 px. With display: block, the link fills the width of its list item, so the user can tap anywhere on the row.
Avoid height: 44px on text containers. A fixed height clips the text when the user enlarges their font. Use min-height.
Spacing counts as much as size
A 44 px target with 0 px between it and its neighbor is fine, because the targets tile the area. The trouble starts with small targets placed close together, such as a row of icon buttons 32 px wide with 4 px gaps. When you cannot make targets bigger, add space around them. Material's guidance of about 8 dp of separation is a reasonable default.
Enlarging the hit area without changing the look
Sometimes the design calls for a 24 px icon. You can keep the icon and grow the tappable area with padding on the button:
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2.75rem;
min-height: 2.75rem;
padding: 0;
background: none;
border: 0;
}
.icon-button svg {
width: 1.5rem;
height: 1.5rem;
}The button is 44 px square and the icon inside stays 24 px. Padding works well here because it also gives the focus outline a sensible size.
Where layout leaves no room for padding, a pseudo-element can extend the hit area past the element's box:
.close {
position: relative;
width: 1.5rem;
height: 1.5rem;
}
.close::after {
content: "";
position: absolute;
inset: -0.625rem; /* 1.5rem + 2 × 0.625rem = 2.75rem */
}Taps on the pseudo-element count as taps on .close. There are two catches. Extended areas can overlap a neighbor, and the element that comes later in the DOM then receives the tap. Tools that measure the element's box also report 24 px, so a size audit may flag it even though the real hit area is 44 px. Prefer padding, and use the pseudo-element only when you must.
Where thumbs reach
On a small phone held in one hand, the thumb sweeps an arc from the bottom corner. Researcher Steven Hoober's observations of people using phones in public found that about half held the phone in one hand. Many others cradled it with one hand and tapped with the other thumb, and fewer used two hands. Phones have grown since then, which makes reach a bigger issue.
For a right-handed one-handed user, the screen divides into rough zones:
| Zone | Reach | Good use | Poor use |
|---|---|---|---|
| Bottom, near the thumb | Natural | Primary navigation, frequent actions | Destructive actions with no confirmation |
| Middle | Moderate stretch | Content, secondary actions | Critical controls |
| Top corners, especially the far one | Needs a grip change or a second hand | Page title, rarely used settings | Menu toggles used on every page |
This is why a top-corner hamburger button is awkward on a large phone. The bottom tab bar, covered in a later chapter, exists largely because the bottom is the easiest zone.
Three caveats apply:
- Handedness varies. About one person in ten is left-handed, and many people switch hands. Do not build something that is usable only from the right side. Centering or spreading controls across the full width serves both hands.
- Reach is a tendency. Do not move every control to the bottom. Reach is one factor in the pattern choice, alongside item count and frequency of use.
- Screen size changes the zones. On a tablet, the thumb zones are at the sides, not at the bottom.
Edge cases that break good-sized targets
System gesture areas
Modern phones reserve the screen edges for system gestures. iOS has a home indicator at the bottom. Android's gesture navigation uses back swipes from the left and right edges. A tab bar button whose tappable area sits right against the bottom edge competes with the home gesture. Add padding with env(safe-area-inset-bottom) so controls sit above the indicator. This only takes effect when the viewport meta tag includes viewport-fit=cover. A side drawer that opens with a swipe from the left edge can collide with the Android back gesture, so a visible button should always be the primary way to open it.
Sticky hover
On touch devices, :hover styles can stick after a tap, which leaves a menu item looking selected. Restrict hover styles to devices that can hover:
@media (hover: hover) {
nav a:hover {
background: #eef;
}
}
nav a:active {
background: #dde;
}The :active rule gives immediate pressed feedback on touch. Without visual feedback, users tap again and trigger the action twice.
Do not rely on `pointer: coarse` alone
You can enlarge targets only for touch users:
@media (pointer: coarse) {
nav a {
min-height: 3rem;
}
}This is a useful refinement, but pointer describes the primary input device only. A touchscreen laptop reports fine, and a tablet with a mouse attached may report coarse. Size targets for touch by default, and use this query only to add extra space on top.
Fixed bars consume the viewport
A 56 px tab bar on a 667 px tall viewport takes about 8% of the height. Add a mobile browser's address bar and the content area gets small. Keep fixed navigation as short as it can be while still meeting the target size, which means around 48 px.
Finding undersized targets
You can audit the page from the browser console. This script lists interactive elements smaller than 44 px in either dimension:
const MIN = 44;
const selector = 'a, button, input, select, textarea, summary, [role="button"]';
const small = [...document.querySelectorAll(selector)]
.map((el) => ({ el, rect: el.getBoundingClientRect() }))
.filter(({ rect }) =>
rect.width > 0 && rect.height > 0 && (rect.width < MIN || rect.height < MIN)
);
console.table(
small.map(({ el, rect }) => ({
element: el.outerHTML.slice(0, 60),
width: Math.round(rect.width),
height: Math.round(rect.height),
}))
);Run it with the browser in device emulation mode, since layout changes between breakpoints. Expect false positives. Inline links in body text will appear even though they are exempt, and a target with a pseudo-element hit area will appear too. Use the output as a list to review, not a pass or fail result. Final checks belong on a real device, as the testing chapter explains.
Checklist for navigation controls
- Every navigation control has a rendered box of at least 44 × 44 CSS px, or 24 px with enough clear space around it.
- Sizes use
remandmin-height, not fixed pixel heights. - Targets are separated by about 8 px if they are smaller than 44 px.
- The most frequent navigation sits within thumb reach, and the layout does not require the right hand.
- Controls near the bottom edge respect the safe area.
- Hover styles are limited to devices that can hover, and every control has an
:activestate.
Exercise
A designer gives you a 24 × 24 px search icon button in the top-right corner of the header, and wants the visual size unchanged. Describe two ways to meet a 44 px target, and say which you would choose.
Show answer
Option one: set min-width and min-height of 2.75rem on the button and center the icon, so padding and the box supply the hit area. Option two: leave the button at 24 px and add an ::after pseudo-element with position absolute and inset -0.625rem, which extends the tappable area to 44 px. Choose the first. It sizes the focus outline correctly, scales with font size, and shows the real size in audits. Use the pseudo-element only if layout leaves no room for the larger box, and check that it does not overlap neighboring controls.
Exercise
Your site has a nav with a { height: 40px; padding: 0 8px; } and a :hover background change. List the problems for a phone user and give the fix for each.
Show answer
The 40 px fixed height is under the 44 px target and clips text if the user increases font size, so use min-height: 2.75rem. The 8 px horizontal padding makes narrow targets, so use larger padding or make the link fill its row with display: block. The hover background can stay highlighted after a tap, so wrap it in @media (hover: hover) and add an :active style for pressed feedback.
Exercise
Why is a menu toggle in the top-right corner a weaker choice than a bottom tab bar on a large phone, and when does the reasoning not apply?
Show answer
On a large phone, held in one hand, the top corners are the hardest area for the thumb to reach, so a control used on every page is costly there. A bottom bar sits in the easiest zone. The reasoning is weaker when the nav is rarely used, when there are too many items for a bar, or on a tablet, where thumbs reach the sides and not the bottom. Reach is one factor next to item count and frequency of use.