aria-progressbar-name
它能做什么
这项技能检查进度条是否有清晰的无障碍名称和正确的数值信息。适合构建上传、加载或分步进度指示器的开发者。
适用场景
- ✓当你为上传或后台任务显示进度条时。
- ✓当进度条没有名称,或只描述自己是“进度”时。
- ✓当可视化进度指示器由普通 div 构成,没有暴露其状态时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-progressbar-name/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让我表单上的上传进度条告诉屏幕阅读器正在上传什么,以及已经完成了多少。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查每个进度条是否有 aria-label 或 aria-labelledby,并在进度已知时添加数值范围。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Provide accessible names for progress bars
Without an accessible name, screen reader users will only hear that a progress bar exists but won't know what task or process it represents.
Quick Reference
- Use
aria-labeloraria-labelledbyto name progress bars - Ensure the name describes what the progress indicates
- Avoid redundant text like "progress" in the label
- Provide
aria-valuenow,aria-valuemin, andaria-valuemaxwhen the value is known - Visual progress meters should use real progress semantics rather than decorative divs when they communicate status
Check
Check if all progress bar elements (role="progressbar") have an accessible name via aria-label or aria-labelledby.
Fix
Add an aria-label or aria-labelledby attribute to the progress bar to describe what it is measuring.
Explain
Explain why progress bars need accessible names for screen reader users to understand the context of the loading state.
Code Review
Review the rendered markup and interactive states that affect Provide accessible names for progress bars. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/aria-progressbar-name
常见问题
没有名称时,屏幕阅读器会读出什么?
它可能只会提示存在一个进度条,却不知道它代表的任务。
名称应该重复“进度”这个词吗?
不应该。这项技能建议避免在标签中使用“进度”之类的多余词语。
当前数值呢?
这项技能建议在数值已知时使用 aria-valuenow、aria-valuemin 和 aria-valuemax。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for progress bars. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #2733
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。