Skip to main content

implement-accessible-ui

Implement accessible Video.js UI. Use for semantics, ARIA, keyboard interaction, focus, screen readers, captions, or live regions.

跳到安装

来源信息

仓库
videojs/v10
最近来源活动
2026年7月27日 23:21
检测到的 SKILL.md 语言
英语
星标
944
分支
92

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
7 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
implement-accessible-ui
description
Implement accessible Video.js UI. Use for semantics, ARIA, keyboard interaction, focus, screen readers, captions, or live regions.
# Accessibility Start from the rendered semantics and interaction contract. Prefer native HTML; add ARIA only where native semantics cannot express the control. ## Workflow 1. Read the component, its rendered output, interaction tests, and adjacent accessible controls. 2. Define expected name, role, value/state, keyboard behavior, focus behavior, and announcements. 3. Load only the applicable reference: - Keyboard: `references/keyboard.md` - Focus: `references/focus.md` - Roles and states: `references/aria.md` - React-specific implementation: `references/react.md` - Media-player behavior: `references/media.md` - Suspected smell: `references/anti-patterns.md` 4. Implement the smallest semantic change and add behavior-focused tests. 5. Verify keyboard and focus behavior in a browser when interaction changed. Never remove visible focus without a replacement, use positive `tabindex`, convey meaning only with color, or use a changing label where a state attribute is the correct contract. ## Example Input: “Make the custom volume slider keyboard accessible.” Output: Correct native or ARIA semantics, keyboard and focus behavior, announcements, focused tests, and browser verification.
在 GitHub 查看