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

frontend-accessibility

使用语义化的HTML、键盘导航、足够的颜色对比度、屏幕阅读器支持、ARIA属性和正确的焦点管理来实现可访问的用户界面。在创建或编辑React组件(.tsx, .jsx文件)、实现带有标签和输入框的表单、构建交互元素(按钮、模态框、菜单、对话框)、实现键盘导航、选择颜色并确保对比度比率、添加ARIA属性、使用屏幕阅读器测试、实现焦点状态和焦点管理,或者创建标题结构和页面地标时使用这项技能。

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 React components in .tsx or .jsx files
  • When implementing semantic HTML elements (nav, main, button, article, section, etc.)
  • When building forms and ensuring all inputs have associated labels
  • When implementing keyboard navigation and focus management
  • When adding interactive elements like buttons, links, modals, or menus
  • When choosing colors and verifying contrast ratios meet WCAG standards (4.5:1 minimum)
  • When adding alternative text to images or icons
  • When implementing ARIA attributes for complex UI patterns
  • When testing components with screen readers
  • When creating logical heading hierarchies (h1-h6)
  • When implementing visible focus indicators for keyboard navigation
  • When managing focus in dynamic content, modals, or single-page applications
  • When ensuring touch targets are appropriately sized for accessibility

Instructions

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