rule @community/rule-aria-label-in-name

Aria Label In Name

When an interactive element has visible text, its accessible name computed by aria-label or aria-labelledby must include that visible text as a substring, so voice-control users can activate it by speaking what they see …

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
79/422/889
$ aoe install @community/rule-aria-label-in-name

Projection

Always in _index.xml · the agent never has to ask for this.

AriaLabelInName [rule] v1.0.0

When an interactive element has visible text, its accessible name computed by aria-label or aria-labelledby must include that visible text as a substring, so voice-control users can activate it by speaking what they see (WCAG SC 2.5.3 Label in Name, Level A).

Source

aoe-engine/examples/frontend-design/primes/compiled/@community/rule-aria-label-in-name/atom.yaml