Skip to main content

Module accessibility

Module accessibility 

Source
Expand description

Accessibility helpers and a debug-time audit.

Winged-Swift has no accessibility module: its whole a11y surface is ariaAttribute, ariaAttributes and setRole in AttributeHelpers.swift, plus two structural affordances — Iframe requires a title:, and Img takes an alt:.

This module adds the linter its ROADMAP.md has asked for since 1.5 and never shipped.

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.