Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2733

aria-progressbar-name

Skill này làm gì

Skill này kiểm tra xem thanh tiến trình có tên khả năng tiếp cận rõ ràng và chi tiết giá trị phù hợp hay không. Nó dành cho lập trình viên làm chỉ báo tiến trình khi tải lên, tải xuống hoặc theo bước.

Khi nào nên dùng

  • ✓Khi bạn hiển thị thanh tiến trình cho việc tải lên hoặc tác vụ nền.
  • ✓Khi thanh tiến trình không có tên hoặc chỉ mô tả mình là progress.
  • ✓Khi chỉ báo tiến trình nhìn thấy được được làm từ các div đơn thuần và không thể hiện trạng thái.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-progressbar-name/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thanh tiến trình tải lên trên form của tôi cho trình đọc màn hình biết đang tải gì và đã đi được bao xa.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra mỗi thanh tiến trình có aria-label hoặc aria-labelledby không, và thêm khoảng giá trị khi biết tiến độ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Trình đọc màn hình nghe gì khi không có tên?

Nó có thể chỉ thông báo rằng có một thanh tiến trình, mà không nói tác vụ nó đại diện là gì.

Tên có nên lặp lại từ progress không?

Không. Skill khuyên tránh các từ thừa như progress trong nhãn.

Còn giá trị hiện tại thì sao?

Skill khuyến nghị aria-valuenow, aria-valuemin và aria-valuemax khi biết giá trị.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2733
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự