Skill Wiki v0.1.0
rule @community/rule-custom-component-aria-role

Custom Component Aria Role

Any custom component replacing a native HTML widget must carry the matching ARIA role attribute. Dropdowns need role=menu + role=menuitem. Modals need role=dialog + aria-modal=true.…

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
3 out · 3 in
Tokens
111/430/830
$ prime install @community/rule-custom-component-aria-role

Projection

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

CustomComponentAriaRole [rule] v1.0.0

Any custom component replacing a native HTML widget must carry the matching ARIA role attribute. Dropdowns need role=menu + role=menuitem. Modals need role=dialog + aria-modal=true. Tab panels need role=tablist + role=tab + role=tabpanel. Disclosure buttons need aria-expanded. Screen readers rely entirely on role to announce widget type and available keyboard interactions.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-custom-component-aria-role/atom.yaml

Compiled at 2026-05-07