# Accessibility and input {#c15}

> Chapter 15 of the App Design Guide 3.0.0. Index: https://www.designguide.dev/llms.txt

These rules keep an app usable for people with different bodies, tools, and settings. Many rules here are Hard: breaking one locks some people out.

## Targets and reach {#s15-1}

### 15.1 Size targets by input type  {#size-targets-by-input-type}

Hard · Adapts

**Rule:** Make touch targets at least 44 by 44 px and pointer targets at least 24 by 24 px, chosen by input type.

**Wide screen:** On a wide screen, targets may be 24 by 24 px for a fine pointer; keep 44 wherever touch can reach. (Triggers: Fine pointer, Dense data)

**Why:** A finger is wider than a pointer tip, and small, close targets cause wrong presses.  **When not:** A resize handle needs a 10 px hit area for a pointer, 44 px for touch ([Rule 12.11](https://www.designguide.dev/r/give-a-handle-a-10-px-hit-area.md)).

- Choose size by input type, not screen width ([Rule 12.9](https://www.designguide.dev/r/size-targets-by-input.md)).
- Pad the press area, with at least 8 px between touch targets.
- Use device-independent pixels, so 44 px is the same on every screen.

**Picture:** Do: Each touch target is 44 px high and has space around it. Don't: Small icons sit close together. A thumb presses the wrong one. Size pair (Phone, 375; Window, 1280): Same workouts. The phone shows a list for touch. The window shows a table for a pointer. Each follows its own target size.

**See:** [12.11 Give a handle a 10 px hit area](https://www.designguide.dev/r/give-a-handle-a-10-px-hit-area.md), [12.9 Size targets by input](https://www.designguide.dev/r/size-targets-by-input.md)

### 15.2 Place primary actions in thumb reach  {#place-primary-actions-in-thumb-reach}

Default · Phone only

**Rule:** On a phone, place the primary action and frequent controls within thumb reach (home rule: [3.18](https://www.designguide.dev/r/place-frequent-actions-in-thumb-reach.md)).

**Why:** The thumb reaches the lower half of a phone easily and the top corners poorly.  **When not:** A back arrow and a title stay at the top by habit.

- Keep reading content high and actions low.
- Do not put the only primary action in a top corner.

**Picture:** Figure: The primary button sits at the bottom, under the thumb.

**See:** [3.18 Place frequent actions in thumb reach](https://www.designguide.dev/r/place-frequent-actions-in-thumb-reach.md)

### 15.3 Keep controls above the keyboard, in safe areas  {#keep-controls-above-the-keyboard-in-safe-areas}

Default · Phone only

**Rule:** Keep bars and primary buttons above the keyboard and inside the safe areas of the screen.

**Why:** The keyboard covers the bottom of the screen, and cut-outs and the gesture bar cover the edges.

- Pad the bottom for the gesture bar while the keyboard is closed.
- Drop that padding while the keyboard is open.
- Scroll the focused field into view.

**Picture:** Do: The button sits above the keyboard and stays in reach. Don't: The keyboard hides the button.

## Text, color, and display {#s15-2}

### 15.4 Set a readable minimum text size  {#set-a-readable-minimum-text-size}

Default · Adapts

**Rule:** Set body and field text to at least 16 px, and helper text and fine print to at least 12 px.

**Wide screen:** On a wide screen, a dense tool for a fine pointer may use 14 px in table cells if zoom works. (Triggers: Fine pointer, Dense data)

**Why:** A phone browser zooms the whole page when a field has text under 16 px.

| Text | Minimum size in px |
| --- | ---: |
| Body text | 16 |
| Field text | 16 |
| Helper text | 12 |
| Fine print | 12 |

**Picture:** Size pair (Phone, 375; Window, 1280): The phone list uses 16 px text. The window table cells use 14 px, and zoom still works.

### 15.5 Let the text-size setting win  {#let-the-text-size-setting-win}

Hard

**Rule:** Apply the person's text-size setting and zoom, and reflow the layout at 200% with no cut or overlapping text.

**Why:** A layout that cuts or overlaps text at 200% locks out people who raise the text size.

- Wrap text that people need to read. Truncate only secondary text.
- Never fix a text box height in px.
- Test every screen at 200%.

| Text size setting | What the layout does |
| ---: | --- |
| 100% | Normal layout |
| 150% | Text wraps. Buttons grow. Nothing is cut. |
| 200% | Rows stack. Text never overlaps. Every word stays visible. |

**Picture:** Size pair (Phone, 375; Window, 1280): The phone at 200%: the lines stack. The window at 100% for comparison.

### 15.6 Meet the contrast ratios  {#meet-the-contrast-ratios}

Hard

**Rule:** Give text at least 4.5 to 1 contrast, and give control edges, focus rings, and state fills at least 3 to 1.

**Why:** Low contrast text is unreadable in sunlight and with low vision, and faint edges hide controls.

- Include placeholder text and text over images.
- Measure in a real browser, not by eye.

| Element | Minimum contrast |
| --- | ---: |
| Body text and field text | 4.5 to 1 |
| Large text (24 px, or 19 px bold) | 3 to 1 |
| Placeholder text | 4.5 to 1 |
| Control edge | 3 to 1 |
| Focus ring | 3 to 1 |
| Selected state fill | 3 to 1 |

### 15.7 Never use color alone  {#never-use-color-alone}

Hard

**Rule:** Never show a state by color alone: add an icon, a word, a shape, or a pattern.

**Why:** Color-blindness, low vision, and screen glare all hide color, so a second cue keeps the meaning.

- Mark a selected chip, segment, or row with fill, outline, or bold.

A grayscale picture cannot show a color-only mark, so this table lists the problem and the fix.

| State | Color alone | With a second cue |
| --- | --- | --- |
| Error | A red border | The border, an alert icon, and a message |
| Selected | A tinted fill | A fill plus a check mark or a bold weight |
| Toggle on | A green track | A knob that moves to the other side |
| Chart series | 2 line colors | A direct label on each line |

**Picture:** Figure: An icon, a message, and a heavier outline mark the error.

### 15.8 Offer light, dark, and system themes  {#offer-light-dark-and-system-themes}

Default

**Rule:** Offer light, dark, and system themes, and apply the saved choice before the screen draws.

**Why:** A flash of the wrong theme at load hurts the eyes and looks broken.

- Make System the default.
- Save the choice and keep it in sync across tabs.
- If storage is blocked, still change the theme for this visit.

**Picture:** Figure: A segmented control with 3 themes. System is the default.

### 15.9 Plan for right-to-left layouts and plurals  {#plan-for-right-to-left-layouts-and-plurals}

Default

**Rule:** Plan for right-to-left layouts, plural forms, and words that run longer in other languages.

**Why:** Right-to-left languages flip the reading order, and translated labels run up to 30% longer ([Rule 9.18](https://www.designguide.dev/r/plan-for-text-30-longer.md)).

- Mirror back arrows and other direction icons in right-to-left layouts.
- Use a plural function, not "file(s)".
- Keep digits and phone numbers in their own left-to-right order.

| Element | In a right-to-left layout |
| --- | --- |
| Back arrow | Points right |
| Reading order | Starts at the right edge |
| Progress bar | Fills from the right |
| Plural text | Uses a plural function: 1 file, 2 files |

**See:** [9.18 Plan for text 30% longer](https://www.designguide.dev/r/plan-for-text-30-longer.md)

### 15.10 Add text alternatives and captions to media  {#add-text-alternatives-and-captions-to-media}

Hard

**Rule:** Give every image and video a text alternative, and add captions to speech in video.

**Why:** People who cannot see an image rely on its description, and people who cannot hear rely on captions.

- Describe the meaning: "Coach holds a plank for 30 seconds".
- Mark a purely decorative image as decorative.
- Turn captions on by default when speech carries the content.

**Picture:** Do: The video has a description and captions. Don't: The description is a file name. No captions play.

## Names, focus, and keyboard {#s15-3}

### 15.11 Give every control a unique name  {#give-every-control-a-unique-name}

Hard

**Rule:** Give every control a name, and make each name unique on the screen.

**Why:** Screen readers and AI agents find controls by name, so a repeated "Edit" button tells them nothing.

- Name the action and the object: "More actions for Jane Cho".
- Use the visible text as the name when the control has text.
- Add a text label next to an icon when space allows.

**Picture:** Do: Each icon button has its own name. Don't: Both buttons read "More". A listener cannot tell which row.

### 15.12 Show a visible focus ring  {#show-a-visible-focus-ring}

Hard

**Rule:** Show a visible focus ring on every control that the keyboard can reach.

**Why:** People who use a keyboard need to see where they are.

- Use a ring at least 2 px thick, at 3 to 1 contrast.
- Never remove the default ring without a replacement.

**Picture:** Do: The field in focus has a heavier outline. Don't: The person tabs to the second field. No ring shows.

### 15.13 Place focus on purpose  {#place-focus-on-purpose}

Hard

**Rule:** Move focus on purpose when a layer opens or closes and when an item is deleted or moved.

**Why:** When focus vanishes, keyboard and screen-reader users must start again from the top of the page.

| Event | Focus goes to |
| --- | --- |
| A dialog opens | The first control, or the dialog title |
| A dialog or sheet closes | The control that opened it |
| A row is deleted | The next row, or the last row |
| An item moves to another list | The item in its new place |
| A submit fails | The first field with an error |

### 15.14 Make a control group one tab stop  {#make-a-control-group-one-tab-stop}

Default

**Rule:** Make a group of related controls one tab stop, and move inside the group with arrow keys.

**Why:** A toolbar of 30 buttons costs 30 Tab presses without a group.  **When not:** Do not group unrelated controls.

- Tab enters the group once.
- Left and right arrows move between options.
- The next Tab leaves the group.

**Picture:** Figure: One group of 3 options. It takes one Tab press to reach.

### 15.15 Give every drag a non-drag path  {#give-every-drag-a-non-drag-path}

Hard

**Rule:** Give every drag a non-drag alternative and a way to cancel.

**Why:** Dragging needs a steady hand and a pointer, so keyboard and switch users need buttons.

- Let Esc cancel a drag and restore the old order.
- On touch, start a drag with a long press or 44 px handle.
- Offer Move up and Move down in a menu.

**Picture:** Do: Each row has Move up and Move down buttons. Don't: A drag handle is the only way to reorder.

### 15.16 Set input type and Enter behavior  {#set-input-type-and-enter-behavior}

Default

**Rule:** Set the input type and the Enter behavior of each field (home rule: [6.6](https://www.designguide.dev/r/open-the-right-keyboard.md)).

**Why:** The right keys cut typing time and errors, and a Next key moves people through a form.

- Label Enter Next while fields follow, and Done on the last.
- Turn off autocorrect for email addresses and codes.

| Field | Keyboard | Enter key label |
| --- | --- | --- |
| Email | Address keys | Next |
| Phone number | Number pad | Next |
| One-time code | Number pad | Done |
| Search | Text keys | Search |
| Comment | Text keys | Send |

**See:** [6.6 Open the right keyboard](https://www.designguide.dev/r/open-the-right-keyboard.md)

## Timing and agents {#s15-4}

### 15.17 Keep a toast long enough to read  {#keep-a-toast-long-enough-to-read}

Default

**Rule:** Keep a toast up for the time [Rule 6.16](https://www.designguide.dev/r/show-one-toast-at-a-time.md) sets, and pause the timer while the pointer or focus is on it.

**Why:** A message that leaves early is lost, and a paused timer helps slow readers and magnifier users.

- Never auto-dismiss a message that holds an action the person needs.
- Never move focus to a toast.
- Use a banner for a long message.

**Picture:** Do: The toast stays long enough and pauses on hover. Don't: The toast is gone before a person reads it.

**See:** [6.16 Show one toast at a time](https://www.designguide.dev/r/show-one-toast-at-a-time.md)

### 15.18 Mark risky controls for agents  {#mark-risky-controls-for-agents}

Default

**Rule:** Mark each control that deletes or sends so an agent asks a person first, and state its effect in one sentence.

**Why:** An agent that presses Delete or Send alone can cause harm that nobody can undo.  **When not:** A control that a person can undo with one tap needs no mark.

- Write it for a person: "Deletes the project and all its files."
- Example mark: `data-confirm="Deletes the project and all its files."`

| Control | Marked for | Effect sentence |
| --- | --- | --- |
| Delete project | Delete | Deletes the project and all its files. |
| Send invite | Send | Sends the invite to 12 people. |
| Remove member | Delete | Removes the member from the team. |

### 15.19 Validate every source of change the same way  {#validate-every-source-of-change-the-same-way}

Default

**Rule:** Run the same validation on every change, whether a person, a keyboard, or an agent makes it.

**Why:** A check in a press handler never runs when an agent sets a value directly.

- Put checks in the change itself, not in key or press events.
- Record who made each change: a person or an agent.
- Let people undo agent changes and keep their own edits.

| Source | Value | Result |
| --- | ---: | --- |
| Person types | 0 | Rejected: Enter 1 or more guests. |
| Keyboard paste | 0 | Rejected: Enter 1 or more guests. |
| Agent sets the value | 0 | Rejected: Enter 1 or more guests. |

## Structure, gestures, and time {#s15-5}

### 15.20 Use headings and landmarks  {#use-headings-and-landmarks}

Default

**Rule:** Mark each screen title as a heading and each main area as a landmark, in reading order.

**Why:** People who use a screen reader jump by heading and landmark.

- Use one main heading for each screen.
- Keep the reading order the same as the visual order.

**Picture:** Do: The title reads as a heading. The list reads as a landmark. Don't: The title reads as plain text. Nothing marks the list.

### 15.21 Announce errors and changes to a screen reader  {#announce-errors-and-changes-to-a-screen-reader}

Hard

**Rule:** Announce a new error or status message to a screen reader without moving focus.

**Why:** A person who cannot see a change never learns of it unless the app says it.

- Announce a failed submit and a saved result.
- Announce a message once, not each time the screen redraws.

**Picture:** Do: The error is read aloud as it appears. Don't: The error shows, but nothing is read aloud.

### 15.22 Give every gesture a one-pointer path  {#give-every-gesture-a-one-pointer-path}

Hard

**Rule:** Give every gesture, scroll-wheel move, or secondary-button action a plain one-pointer alternative that is visible.

**Why:** Some people cannot pinch, swipe, hold 2 fingers still, or use a wheel or right button.

- Add plus and minus buttons beside a pinch or wheel zoom.
- Offer a visible button for every swipe action.
- Offer a visible menu button for every secondary-button action.

**Picture:** Do: Plus and minus buttons zoom the map. Don't: Only a pinch zooms the map.

### 15.23 Let a person extend a time limit  {#let-a-person-extend-a-time-limit}

Default

**Rule:** Warn before a time limit ends, and let the person extend it with one action.

**Why:** Some people need more time to read, type, or act.  **When not:** A limit that protects a real hold, such as a held seat, can stay fixed.

- Warn at least 20 seconds before the limit ends.
- Say how long the extension lasts.

**Picture:** Do: The warning offers 5 more minutes. Don't: The warning has no way to add time.

### 15.24 Keep secrets out of an agent's view  {#keep-secrets-out-of-an-agents-view}

Default

**Rule:** Let an agent fill a password or code field, but never let it read the value back.

**Why:** A value that an agent reads can leak into logs and later steps.

- Hide recovery codes from an agent.

**Picture:** Do: The agent fills the field. The value stays hidden. Don't: The agent can read the code back.

## Reflow and zoom {#s15-6}

### 15.25 Reflow at 320 wide and at 400% zoom  {#reflow-at-320-wide-and-at-400-zoom}

Hard

**Rule:** Reflow every screen at 320 px wide and at 400% zoom with no sideways page scroll.

**Why:** People who zoom far or use a small screen need one reading column.  **When not:** A map, a chart with 2 axes, or a grid may scroll both ways inside its own box.

- Use relative units so text and boxes grow with zoom.
- A 1280 window at 400% zoom is a 320 px screen.
- Layout view: [Rule 5.5](https://www.designguide.dev/r/work-at-320-px-with-no-sideways-scroll.md). Window view: [Rule 13.19](https://www.designguide.dev/r/keep-every-function-at-400-percent-zoom.md).

**Picture:** Do: The chips wrap to a second line. Nothing is cut. Don't: The chips stay in one row and run off the edge.

**See:** [5.5 Work at 320 px with no sideways scroll](https://www.designguide.dev/r/work-at-320-px-with-no-sideways-scroll.md), [13.19 Keep every function at 400 percent zoom](https://www.designguide.dev/r/keep-every-function-at-400-percent-zoom.md)

### 15.26 Let text spacing grow without clipping  {#let-text-spacing-grow-without-clipping}

Hard

**Rule:** Let a person widen line, letter, and word spacing with no clipped text, and let boxes grow in height.

**Why:** A fixed-height box cuts the extra lines that wider spacing creates.

- Test with line height at 1.5 and letter spacing at 0.12 em.
- Let buttons grow when a label wraps.

**Picture:** Figure: Normal spacing: the card text takes 1 line. Figure: Larger spacing: the text takes 2 lines, and the card grows taller.

## Focus, hover, and pointer {#s15-7}

### 15.27 Never trap keyboard focus  {#never-trap-keyboard-focus}

Hard

**Rule:** Never trap keyboard focus, and let Esc leave every layer.

**Why:** Keyboard, switch, and voice users send keys, so a trap or a mouse-only function locks them out.

- Never make a control that only a pointer can reach.
- Every action works by keyboard: [Rule 12.15](https://www.designguide.dev/r/make-every-action-work-with-the-keyboard.md). Focus order: [Rule 12.16](https://www.designguide.dev/r/order-tab-by-the-visual-order.md).

**Picture:** Figure: Tab reaches the button. Esc leaves a layer. Nothing traps focus.

**See:** [12.15 Make every action work with the keyboard](https://www.designguide.dev/r/make-every-action-work-with-the-keyboard.md), [12.16 Order Tab by the visual order](https://www.designguide.dev/r/order-tab-by-the-visual-order.md)

### 15.28 Keep the focused control in view  {#keep-the-focused-control-in-view}

Hard

**Rule:** Keep a focused control in view, not hidden under a sticky header, a pinned button, a side panel, or a layer.

**Why:** A person who tabs to a control under a sticky part cannot see where focus is.

- Add scroll padding equal to the height of each sticky part.
- Let a side panel push content aside, never cover it.
- Leave room above a pinned bar for the last row.

**Picture:** Do: The focused field scrolls into view above the button. Don't: The focused Notes field sits under the pinned button, out of sight.

### 15.29 Keep hover content dismissible and hoverable  {#keep-hover-content-dismissible-and-hoverable}

Default · Adapts

**Rule:** Let the person dismiss hover content with Esc, move the pointer onto it, and keep it open.

**Wide screen:** On a wide screen, show the hint on hover and on focus, and keep it open while the pointer is on it. (Triggers: Hover, Keyboard)

**Why:** Keyboard and touch users cannot hover, and a hint that hides the page blocks people who magnify.

- Let Esc dismiss the hint without moving focus.
- On touch, show the hint on press, with a visible Close.
- Focus parity: [Rule 12.3](https://www.designguide.dev/r/match-hover-with-focus.md). Timing: [Rule 12.8](https://www.designguide.dev/r/time-the-tooltip.md).

**Picture:** Size pair (Phone, 375; Window, 1280): Same hint text. The phone shows it in a banner with a Close button. The window adds a tooltip on focus and hover.

**See:** [12.3 Match hover with focus](https://www.designguide.dev/r/match-hover-with-focus.md), [12.8 Time the tooltip](https://www.designguide.dev/r/time-the-tooltip.md)

## Screen reader on every size {#s15-8}

### 15.30 Name each pane as a landmark  {#name-each-pane-as-a-landmark}

Default · Adapts

**Rule:** Give each pane its own landmark and heading, and give a person a way to jump between panes.

**Wide screen:** On a wide screen, mark the list and the detail as 2 named landmarks, and add a skip link between them. (Triggers: Width 840+, Keyboard)

**Why:** A listener moves by landmark, and two panes that read as one block hide the detail.

- Compact has one pane, so it has one main landmark.
- Name each landmark by its content: Orders list, Order detail.
- Basic landmarks: [Rule 15.20](https://www.designguide.dev/r/use-headings-and-landmarks.md). Focus order across panes: [Rule 12.17](https://www.designguide.dev/r/give-a-key-that-cycles-the-panes.md).

**Picture:** Size pair (Phone, 375; Window, 1280): The phone has one main landmark. The window has a named list landmark, a named detail landmark, and a skip link.

**See:** [15.20 Use headings and landmarks](https://www.designguide.dev/r/use-headings-and-landmarks.md), [12.17 Give a key that cycles the panes](https://www.designguide.dev/r/give-a-key-that-cycles-the-panes.md)

### 15.31 Keep names and order equal on every size  {#keep-names-and-order-equal-on-every-size}

Default

**Rule:** Give each control the same name, and the same reading order, on a phone and in a window.

**Why:** A control that changes its name or place on a wider screen costs people time and trust.

- Name a control by its action and object at every size.
- A control that moves into a menu keeps its name.
- Test with a screen reader on a phone and on a desktop.

**Picture:** Figure: The same names in the same order at both sizes.
