aria-patterns
Skill34 starsChanged 9 months agoMITView on GitHub
Expert knowledge base for building accessible UI components with awareness of real-world assistive technology (AT) support gaps. Goes beyond the WAI-ARIA spec to provide actual AT compatibility data from a11ysupport.io, known screen reader quirks, proven workarounds, and the critical gotchas that emerge when ARIA meets real users on real devices. Use this skill whenever the user is building, reviewing, fixing, or testing an interactive UI component for accessibility — especially when they need to know what actually works across screen readers, not just what the spec says should work. Trigger on mentions of "ARIA", "a11y", "accessibility", "screen reader", "keyboard navigation", "WAI-ARIA", "APG patterns", "AT support", "assistive technology", "aria-modal", "tooltip role", "combobox", "menu pattern", "switch role", or any question about whether an ARIA feature actually works in practice. Also trigger when the user mentions specific screen readers (JAWS, NVDA, VoiceOver, TalkBack, Narrator) or asks about cross-browser/cross-AT compatibility for accessible components.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dylantarre/design-system-skillstheir own version, first seen Dec 30, 2025
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dylantarre/design-system-skills★ 50same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- find-skillsSkill
- rstestSkill
- skill-creatorSkill
- typescript-expertSkill
- figma-a11y-auditSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Read the reference file for the pattern the user needs
- Distinctive: line 60
When the user asks about a pattern, prioritize AT support reality over idealized spec behavior.
- Very specific: line 101
Use native HTML elements whenever they provide the needed semantics.
- Distinctive: line 109
When this skill describes what a screen reader should announce, it refers to the semantic information that must be conveyed — not the exact …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ARIA Accessible Component Patterns
This skill provides deep, practical knowledge about accessible UI component patterns based on the WAI-ARIA Authoring Practices Guide (APG).
Why this skill exists
LLMs already know the ARIA spec reasonably well. What they often get wrong is the gap between spec and reality:
role="tooltip"has 3/33 MUST support on a11ysupport.io — it's essentially deadaria-modal="true"is not supported by TalkBack, Narrator, or Orca — your modal isn't actually modalaria-autocompletehas 11/55 MUST support — screen readers mostly ignore itaria-errormessagehas ~20% MUST support — designed for form errors but AT ignores it; usearia-describedbyinsteadaria-relevantis completely broken for ANY non-default value —"additions"alone has 0/11 full support (NVDA ZERO on all browsers — stops announcing entirely);"text"alone also 0/11 (Narrator, VoiceOver iOS/macOS = none);"removals"2/11 (VoiceOver only); the default"additions text"is the ONLY value that works (11/11)aria-controlsnavigation works only in JAWS — other screen readers don't expose itrole="menu"is for application commands, not site navigation — this is the #1 ARIA misusearia-busy="true"is supposed to suppress live region updates but only JAWS supports it — every other screen reader ignores itaria-live="assertive"does NOT interrupt in JAWS — the most-used desktop screen reader queues it insteadaria-detailshas 7/11 MUST support — VoiceOver (macOS + iOS), Narrator, and TalkBack completely ignore it; usearia-describedbyas primary link to descriptionsaria-activedescendantis completely unsupported for combobox on VoiceOver macOS/Safari — it works for menus but combobox options are invisible; use DOM focus (roving tabindex) insteadaria-currenthas ZERO support on Narrator and Orca — the attribute recommended for breadcrumbs, step indicators, and nav is invisible to Windows built-in and Linux screen readers; dynamic state changes only announced by NVDA and VoiceOver iOSaria-pressed="mixed"has near-zero support — only JAWS (Chrome/Firefox) and VoiceOver macOS convey the tri-state; NVDA, Narrator, Orca, TalkBack, VoiceOver iOS all ignore itaria-sortdynamic changes are announced by only NVDA+Firefox (1/11 combos) — when a user clicks a column header to change sort direction, JAWS, Narrator, VoiceOver (all platforms), Orca, and TalkBack are all silent; Orca and TalkBack can't even read static ascending/descending valuesaria-colcount="-1"(unknown column count) is broken in ALL screen readers (0/11) — every AT ignores the spec's MUST NOT and announces its own calculated count, misleading users; VoiceOver (macOS + iOS) and TalkBack don't supportaria-colcountat allaria-flowtohas 10/44 MUST support (23%) — only JAWS supports alternate reading order navigation; NVDA, VoiceOver, TalkBack, Narrator, and Orca completely ignore it, making it useless for defining multi-column or complex layout reading pathsaria-levelabove 6 has ZERO support in JAWS (all browsers) and TalkBack — only 4/11 combos fully support heading levels >6; JAWS announces "heading" with no level number; restructure headings to stay within 1–6 or encode depth context in the accessible name
This skill provides the AT support reality data that prevents developers from shipping components that work in theory but fail for real screen reader users.
How to use this skill
- Read the reference file for the pattern the user needs
- Always check
references/at-support-gotchas.mdfor cross-cutting AT support issues — this file contains the most critical knowledge that other sources miss - Check
references/live-regions.mdwhenever the user's component involves dynamic content updates, notifications, or status messages — live region behavior is deeply unintuitive - Check
references/form-validation.mdwhenever the user is implementing form validation, error handling, or required field patterns —aria-errormessageis deceptively broken - Adapt to the user's context (framework, building vs auditing, testing)
When the user asks about a pattern, prioritize AT support reality over idealized spec behavior. If a feature has known support gaps, say so explicitly and provide workarounds.
Available patterns
| Pattern | Reference file | Key AT insight |
| Accordion | references/accordion.md | Well-supported; heading structure is the critical factor |
| Checkbox | references/checkbox.md | Native recommended; tri-state has nuanced AT behavior |
| Combobox | references/combobox.md | aria-autocomplete is nearly unsupported — use live regions |
| Dialog (Modal) | references/dialog.md | aria-modal fails in 3+ screen readers — use inert or native <dialog> |
| Menu and Menubar | references/menu.md | NOT for site navigation — only for app-style commands |
| Switch | references/switch.md | Falls back to "checkbox" in many screen readers |
| Tabs | references/tabs.md | Automatic activation recommended; Tab key goes to panel, NOT next tab |
| Tooltip | references/tooltip.md | role="tooltip" is essentially dead — rely on aria-describedby/aria-labelledby |
Cross-cutting reference
| Reference | File | Content |
| AT Support Gotchas | references/at-support-gotchas.md | Critical ARIA features with broken AT support, workarounds, and testing recommendations |
| Live Regions | references/live-regions.md | aria-busy broken everywhere except JAWS, assertive doesn't interrupt in JAWS, DOM-first rule, debouncing |
| Form Validation | references/form-validation.md | aria-errormessage barely works — use aria-describedby; group/radiogroup mobile gaps; DOM-first rule for alerts |
Reference file structure
Each reference file follows the same structure:
- Identity — what makes a component this pattern (and what doesn't), with a comparison table against similar patterns
- Variants — behavioral differences between sub-types
- Anatomy & markup — required HTML structure and ARIA attributes, with code for both native and custom implementations
- Keyboard interaction — every key the component must respond to, organized as required vs. optional
- State management — how ARIA states change in response to user interaction, with state transition rules
- Screen reader expectations — what semantic information must be conveyed, acknowledging differences across screen readers
- Implementation guide — practical guidance for building the component correctly, with native-first approach
- Common mistakes — frequent accessibility failures and how to fix them
- Acceptance criteria — concise, verifiable checklist for auditing, organized by severity
General principles
Prefer native HTML (First Rule of ARIA)
Use native HTML elements whenever they provide the needed semantics. A <button> is always preferable to a <div role="button">. Only reach for ARIA when no native element can achieve the result.
Spec vs reality
The ARIA spec defines what SHOULD happen. Real AT support determines what DOES happen. When this skill flags a support gap, take it seriously — millions of users depend on screen readers that may not implement the spec correctly. Always provide fallbacks for features with known gaps.
Screen reader announcements are semantic, not verbatim
When this skill describes what a screen reader should announce, it refers to the semantic information that must be conveyed — not the exact words. NVDA, JAWS, VoiceOver, and TalkBack each phrase things differently, but the underlying meaning must be present.
Severity levels
- Critical — Failure makes the component unusable for AT users. Must be resolved.
- Major — Failure significantly degrades the experience. Should be resolved.
- Minor — Usability inconvenience. Resolve when possible.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

