Skip to main content

Module accessibility_audit

Module accessibility_audit 

Source
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§

AccessibilityIssue
One thing a reader user trips over on a screen.

Enums§

AccessibilityIssueKind
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 screen with 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§

KnownIssue
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.