UX7: Accessible and inclusive design

Lesson 4 of 5 ยท reading 15โ€“25 minutes; practice and project time is on the module page

Touch, zoom and reflow

๐ŸŽฏYou'll be able to

Size and space touch targets, and make sure screens work when people zoom or enlarge text.

๐Ÿ The everyday picture

A lift's buttons are big enough to press with a gloved hand and far enough apart that you don't hit two floors at once. Touch screens need the same care.

๐Ÿ“˜What it really is

๐Ÿ“A worked example

Input: tap targets in the starter.

Steps:

  1. Run npm run test:prototype on the starter.
  2. Read test 7's output.

Expected output: small targets on the search page, including "Go" and every "Choose a time" link. In the reference, .btn has min-height: 48px and min-width: 44px, back links have min-height: 44px, and the checkbox's label is at least 44 pixels high, so test 7 passes on every page.

๐ŸŒWhere it's used

๐Ÿ“Case scenario

A grocery app put "+" and "โˆ’" buttons 4 pixels apart. Customers often ordered two of something when they meant to remove one. Larger, separated buttons and a quantity shown in words ("2 packets") reduced returns.

๐Ÿ–ฑ๏ธTry it

On your phone, find a screen where two small targets sit close together. Measure them in a screenshot. Success: you estimate their size and suggest a layout that gives each at least 44 by 44 pixels.

โš ๏ธCommon mistakes

๐Ÿ› ๏ธFor your project

Project 2's test 7 checks that every link and button is at least 44 by 44 pixels at 375 pixels wide; test 8 checks reflow at 320.

โœ…Quick check

What minimum target size does WCAG 2.2 AA ask for?

Show the answer

24 by 24 CSS pixels (or enough spacing); many teams use 44 by 44 as their own floor.

Why use min-height instead of height for buttons?

Show the answer

So buttons can grow when text is enlarged instead of cutting it off.

โ† PreviousScreen readers: names, roles and states
ProLearners Assist