vue-a11y
Skill28 starsChanged 32 days agoMITView on GitHub
Accessibility for Vue 3 apps. Semantic templates, ARIA patterns for modal, tabs, menu and combobox, focus management with Teleport and route changes, live announcements, accessible form errors, and automated checks with axe. Use when building UI components, reviewing accessibility, WCAG compliance, keyboard navigation or screen reader support.
In this repository16 other files it gives its agents.
- antfuSkill
- build-toolingSkill
- designSkill
- find-skillsSkill
- nuxtSkill
- vitepressSkill
- vue-ciSkill
- vue-clean-componentsSkill
- vue-dataSkill
- vue-debugSkill
- vue-formsSkill
- vue-performanceSkill
- vue-reviewSkill
- vueSkill
- vue-uiSkill
- vue-upgradeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 13
Every input has a <label>.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Vue Accessibility
Target WCAG 2.2 AA. Order of preference: semantic HTML, then keyboard support, then focus management, then ARIA. A <button> beats a <div role="button" tabindex="0"> with three handlers.
Every component
- Anything interactive is focusable and works with the keyboard.
<button>,<a href>and<input>give you this for free. - Every input has a
<label>. Every image hasalt(alt=""when decorative). - Focus is visible. Never remove
outlinewithout a:focus-visiblereplacement. - Click targets are at least 24 by 24 CSS pixels. Color is never the only signal.
- Changes announce themselves: errors, async results and route changes use a live region or move focus.
Traps specific to Vue SPAs
| Trap | Fix |
| Route changes are silent for screen readers | Announce the new page and move focus; see focus-management |
| A Teleported modal lets focus escape behind it | Focus trap plus inert or aria-modal; see focus-management |
v-if swaps content without announcement | Live region, or focus the new content. VueUse 15 adds useLiveAnnouncer for polite and assertive messages |
| Hand-made dropdown, tab or menu widgets | Follow the ARIA pattern in aria-components, or use Reka UI primitives (vue-ui skill) |
| Validation errors shown only as red text | Wire aria-describedby and aria-invalid; see the vue-forms skill and aria-components |
References
| Topic | Path |
| Modal, tabs, menu, combobox, disclosure and toast patterns in Vue | aria-components |
| Teleport modals, focus traps, route announcements, skip links | focus-management |
| vitest-axe, Playwright audits, eslint-plugin-vuejs-accessibility | testing-a11y |
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.

