跳到正文
Skillpedia
网站与界面(前端)75k · #2733

aria-progressbar-name

它能做什么

这项技能检查进度条是否有清晰的无障碍名称和正确的数值信息。适合构建上传、加载或分步进度指示器的开发者。

适用场景

  • ✓当你为上传或后台任务显示进度条时。
  • ✓当进度条没有名称,或只描述自己是“进度”时。
  • ✓当可视化进度指示器由普通 div 构成,没有暴露其状态时。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-progressbar-name/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-progressbar-name/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-label or aria-labelledby to name progress bars
  • Ensure the name describes what the progress indicates
  • Avoid redundant text like "progress" in the label
  • Provide aria-valuenow, aria-valuemin, and aria-valuemax when 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2733
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能