Expand description
The checks a screen reader user fails a screen on, run over a placed semantics tree so a test catches them before a person does.
Structs§
- Accessibility
Issue - One thing a reader user trips over on a screen.
Enums§
- Accessibility
Issue Kind - One kind of thing a reader user trips over.
Constants§
- MINIMUM_
TARGET_ SIZE - The smallest target WCAG 2.5.8 accepts, in points. Material asks for 48
and Apple for 44;
Modifier::minimum_interactive_component_size()gives a small control the 48.
Functions§
- assert_
accessible - Fails the test with every issue on the screen and what fixes each kind.
- audit_
accessibility - Every issue on the screen, in reading order.
- audit_
changes - Compares the issues found on
screenwith the list a test keeps and reports what changed: the lines that are new, and the listed issues that went away. A test fails on either, so the list only shrinks. An issue matches a listed one when its line starts with the listed text; a*entry matches on every screen and is never reported as gone. - spoken_
name - The name a reader speaks for a node: its own label, else the title it gives the screen, else the words under it.
Type Aliases§
- Known
Issue - An issue a test leaves as it is: the screen it is on,
*for every screen; the start of the issue line; the reason it stays.