Sub topic 4
Touch targets and thumb reach
This chapter assumes you know semantic HTML, CSS flexbox and media queries, and basic JavaScript event handling. It covers two physical limits that shape every mobile navigation pattern in this tutorial: how big a control must be, and where a thumb can reach.
Why size matters
A mouse pointer is a single pixel. A fingertip is a pad about 10 mm wide that covers the target while it presses. You cannot see exactly where you touch, and the browser must guess which element you meant. Small or tightly packed links lead to mis-taps. Mis-taps send people to the wrong page, and they are the most common complaint about cramped mobile navigation.
Published guidance gives minimum sizes:
| Source | Minimum target size |
|---|---|
| WCAG 2.2, Success Criterion 2.5.8 (level AA) | 24 by 24 CSS pixels, or enough spacing around smaller targets |
| WCAG 2.2, Success Criterion 2.5.5 (level AAA) | 44 by 44 CSS pixels |
| Apple Human Interface Guidelines | 44 by 44 points |
| Material Design | 48 by 48 dp |
A CSS pixel is a unit that the browser scales to the screen, so these sizes stay physically similar across devices. The AA rule is the legal floor in many regions. For primary navigation, aim for 44 to 48 pixels in height, as the tab bar example later in this tutorial does with min-height: 48px.
Make the whole row tappable
Size the link, not just its text. A bare inline link is only as tall as its line of text, usually 16 to 24 pixels. Make the anchor a block and give it padding, so the whole row responds to a tap.
.nav-link {
display: block;
min-height: 48px;
padding: 0.75rem 1rem;
line-height: 1.5;
}The padding sits inside the link, so it is part of the tap area. Margin sits outside the link and does not count. If you want visual gaps between items and also want a forgiving tap area, put the space in padding, not margin.
Spacing also counts. Two 44 pixel targets that touch each other are easier to hit than two 30 pixel targets, but a gap of 8 pixels or more between neighbors reduces the chance of tapping the wrong one.
Visual size versus tap size
Sometimes a design needs a small icon, such as a 24 pixel menu glyph. Keep the icon small and grow the button around it.
#menu-toggle {
min-width: 48px;
min-height: 48px;
padding: 0 0.75rem;
background: transparent;
border: 0;
}The icon stays small. The tappable area is still 48 pixels. This is the same approach used for the hamburger toggle in the next chapters.
Thumb reach
Most people hold a phone in one hand and use the thumb. As phones have grown, the top of the screen has become the hardest area to reach. The comfortable zone is the lower middle of the screen, on the side of the hand that holds the phone. The top corner on the opposite side is the hardest.
Instead of a diagram, use this summary of the zones for a right-handed one-hand grip:
| Screen zone | Reach with a thumb |
|---|---|
| Bottom center and bottom right | Easy |
| Middle of the screen | Possible with a small stretch |
| Top left | Hard, often needs a second hand or a grip change |
Thumb zones are a guide, not a law. People switch hands, use tablets with two thumbs, or use a phone on a desk. Do not hide a needed control in a spot that is only reachable with effort, and do not assume everyone is right-handed. The practical rules are:
- Put the most frequent actions near the bottom of the screen when the layout allows it.
- Put rare or destructive actions out of easy reach, such as a log out link at the end of a menu.
- Keep the same control in the same place on every page.
This is why the bottom tab bar is popular on mobile apps. A hamburger button in the top corner is easy to place but harder to reach, which matters when we compare patterns later.
Common errors
- Sizing the text, not the link. The visible words are 20 pixels tall, but the tap area is also 20 pixels.
- Using margin for spacing. Margin does not enlarge the target. Use padding.
- Shrinking targets with
max-heightor fixed heights on small screens. Usemin-heightso larger text settings still fit. - Testing only with a mouse. A desktop browser's narrow window does not tell you how a thumb behaves. Test on a real phone, which is covered in the last chapter.
- Ignoring spacing in dense lists. Link lists in footers and menus are often tightly stacked. Add vertical padding to each item.
Exercise
A navigation link has display: inline, font-size: 1rem, and margin: 0.75rem 1rem. Users complain they often miss it. Why, and how do you fix it?
Show answer
The link is an inline element, so its tap area is only one line of text, about 24 pixels tall, and margin does not add to it. Change the CSS to display: block; min-height: 48px; padding: 0.75rem 1rem; so that the padding becomes part of the tappable area.
Exercise
Why does a bottom tab bar suit one-handed use better than a top-corner hamburger button, and why should you not rely on thumb zones alone?
Show answer
The bottom of the screen is the easiest area for a thumb to reach, while the top corners are the hardest. Zones are only a guide, because people use different hands, grips, and devices, so size and spacing must still meet the minimum target guidance.