跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
法律与合规

vue-a11y

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.

KIMJINWOO4 · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add KIMJINWOO4/vue-skills --skill vue-a11y

技能说明


name: vue-a11y description: 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.

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

  1. Anything interactive is focusable and works with the keyboard. <button>, <a href> and <input> give you this for free.
  2. Every input has a <label>. Every image has alt (alt="" when decorative).
  3. Focus is visible. Never remove outline without a :focus-visible replacement.
  4. Click targets are at least 24 by 24 CSS pixels. Color is never the only signal.
  5. Changes announce themselves: errors, async results and route changes use a live region or move focus.

Traps specific to Vue SPAs

TrapFix
Route changes are silent for screen readersAnnounce the new page and move focus; see focus-management
A Teleported modal lets focus escape behind itFocus trap plus inert or aria-modal; see focus-management
v-if swaps content without announcementLive region, or focus the new content. VueUse 15 adds useLiveAnnouncer for polite and assertive messages
Hand-made dropdown, tab or menu widgetsFollow the ARIA pattern in aria-components, or use Reka UI primitives (vue-ui skill)
Validation errors shown only as red textWire aria-describedby and aria-invalid; see the vue-forms skill and aria-components

References

TopicPath
Modal, tabs, menu, combobox, disclosure and toast patterns in Vuearia-components
Teleport modals, focus traps, route announcements, skip linksfocus-management
vitest-axe, Playwright audits, eslint-plugin-vuejs-accessibilitytesting-a11y