package file→ .shtukbase/packages/design-a11y/judges/keyboard-and-structure.md
judges/keyboard-and-structure.md
19 lines, 1.6 KB.
- # Judge: keyboard, focus and page structure
- Norm A11Y-R08. These properties are visible only on a running page. A judge checks them.
- **Who judges.** The screen's reviewer: a person or an agent with a browser, not the author of the screen.
- **When.** On every new screen and on a change that alters order, menus, dialogs or forms.
- **What to look at.**
- 1. Keyboard (WCAG 2.1.1, 2.1.2). Mouse aside. Tab passes through all buttons, links and fields; Enter and Space press; Esc closes a dialog and a menu; focus does not get stuck.
- 2. Focus order (2.4.3). Focus goes the way the page reads: top to bottom, left to right. An open dialog keeps focus inside; a closed one returns it to the button that opened it.
- 3. Focus is visible (2.4.7). An element in focus has a ring or a border. `outline: none` without a replacement is a finding.
- 4. Target size (2.5.8). A button and an icon link are at least 24×24 px, or there is a gap of up to 24 px between targets.
- 5. Non-text contrast (1.4.11). A field border, an icon button, a focus ring differ from the background by at least 3:1. Compute it with the same contrast as in norm A11Y-R01.
- 6. Structure (1.3.1, 2.4.6). One `h1` on the screen; headings in order; a list is a `ul`/`ol`; a data table is a `table` with `th`. Easy to see in the browser's accessibility tree.
- 7. Zoom (1.4.4, 1.4.10). At 200% and a width of 320 px the text is not cut off and no sideways scrolling is needed.
- **Result.** A finding is a task with the screen, the list item and the WCAG criterion. All in place: a note in the change description: "A11Y-R08 — checked".