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

aria-meter-name

Skill này làm gì

Skill này kiểm tra xem phần tử meter và vai trò meter có tên rõ ràng hay không. Nó dành cho lập trình viên hiển thị mức pin, dung lượng, độ mạnh mật khẩu hoặc các số đo tương tự.

Khi nào nên dùng

  • ✓Khi bạn hiển thị một meter cho dung lượng, pin hoặc độ mạnh mật khẩu.
  • ✓Khi một giá trị được đọc mà không nói nó đo cái gì.
  • ✓Khi bạn xem lại biểu đồ hoặc đồng hồ đo về khả năng tiếp cận cơ bản.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-meter-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-meter-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

“Thêm nhãn khả năng tiếp cận cho các meter dung lượng và độ mạnh mật khẩu trên trang đăng ký của tôi.”

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

Cách hoạt động

Agent tìm các phần tử meter không có tên và thêm aria-label hoặc aria-labelledby cho biết phép đo là gì.

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 meter elements

A meter represents a scalar measurement; without a label, a user might hear a value (e.g., '50%') but have no idea if it refers to battery life, storage space, or a password strength.

Quick Reference

  • The <meter> element or role="meter" must have an accessible label
  • Use aria-label or aria-labelledby to provide context
  • Helps users understand what measurement is being displayed

Check

Check for <meter> elements or elements with role="meter" that lack an accessible name.

Fix

Add an aria-label or aria-labelledby to the meter element to describe the measurement.

Explain

Explain why measurements need context through accessible names for screen reader users.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for meter elements. 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-meter-name

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

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

Skill nói nó có thể chỉ nghe một giá trị, như 50 phần trăm, mà không biết nó đo cái gì.

Meter có cần nhãn nhìn thấy được không?

Skill tập trung vào tên khả năng tiếp cận, có thể đặt trong code bằng aria-label hoặc aria-labelledby.

Điều này áp dụng cho những phần tử nào?

Phần tử meter và mọi phần tử có role meter.

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 meter elements. 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
#2732
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ự