Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

Accessibility helpers and a debug-time audit.

Beyond the attribute helpers (aria_attr, set_role) and the two constructors that make a mistake hard (iframe_titled requires a title, image takes an alt), this module is a linter: audit finds the accessibility problems that are visible in the tree.

Structs§

A11yIssue
Something in the tree that will be hard or impossible to use with assistive technology.

Enums§

Role
A landmark or widget role, for Element::set_role.

Functions§

audit
Finds accessibility problems in a subtree.
debug_assert_accessible
Panics in debug builds if the subtree has accessibility problems.