返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Frontend Accessibility

使用语义化的HTML、ARIA属性、键盘导航和WCAG合规性来构建可访问的用户界面。在创建或修改UI组件、表单、交互元素、导航菜单、模态框或任何面向用户的界面代码时运用此技能。当处理Astro组件文件(.astro)、React/Vue/Svelte组件文件、HTML模板文件、带有输入和标签的表单组件、导航菜单和交互小部件、模态对话框和折叠面板、带有替代文本的图片组件、按钮和链接实现、焦点管理代码或屏幕阅读器播报逻辑时。

person作者: jakexiaohubgithub

Frontend Accessibility

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend accessibility.

When to use this skill

  • When creating or editing Astro components (.astro files)
  • When building React, Vue, Svelte, or other framework components
  • When implementing forms with input fields, labels, validation, and error messages
  • When creating navigation menus, breadcrumbs, or site navigation structures
  • When building interactive components (modals, dropdowns, accordions, tabs, tooltips)
  • When adding images and ensuring proper alt text and figure captions
  • When implementing keyboard navigation or focus management
  • When creating buttons, links, or custom interactive elements
  • When using ARIA attributes (roles, labels, live regions, expanded states)
  • When ensuring color contrast ratios meet WCAG standards
  • When implementing skip links or other accessibility navigation aids

Instructions

For details, refer to the information provided in this file: frontend accessibility