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

aria-command-name

Skill này làm gì

Skill này kiểm tra xem mọi nút, liên kết và mục menu có thể được trình đọc màn hình đặt tên hay không. Nó dành cho lập trình viên web muốn mỗi điều khiển nói rõ nó làm gì.

Khi nào nên dùng

  • ✓Khi bạn làm nút chỉ có biểu tượng, không có chữ hiển thị.
  • ✓Khi một liên kết hoặc mục menu không có chữ đọc được.
  • ✓Khi bạn xem lại trang để tìm điều khiển mà trình đọc màn hình chỉ thông báo theo vai trò của nó.

Liên kết skill

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

“Kiểm tra thanh công cụ của tôi xem có nút nào không có tên, như nút chỉ có biểu tượng, và thêm nhãn cho chúng.”

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ử lệnh không có chữ, aria-label hoặc aria-labelledby, rồi thêm tên rõ ràng cho từng cái.

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 ARIA command elements

Without an accessible name, screen reader users will only hear the role (e.g., 'button') without knowing what it does, making the interface impossible to navigate.

Quick Reference

  • Elements with command roles (button, link, menuitem) must have a label
  • Accessible names can be provided via text content, aria-label, or aria-labelledby
  • Ensures users know the purpose of the interactive element

Check

Identify elements with command roles (like button or link) that lack a clear accessible name.

Fix

Add an accessible name using inner text, aria-label, or aria-labelledby to all command elements.

Explain

Explain how accessible names for command elements enable screen reader users to understand interactive controls.

Code Review

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

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

Trình đọc màn hình nói gì với một nút không có tên?

Skill nói nó có thể chỉ thông báo button, nên người dùng không biết nút làm gì.

Có những cách nào để đặt tên cho điều khiển?

Chữ hiển thị, aria-label, hoặc aria-labelledby, trỏ đến chữ ở nơi khác trên trang.

Tên có nên ngắn không?

Có. Skill khuyến nghị tên ngắn gọn mô tả hành động hoặc đích đến.

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 ARIA command 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
#2724
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ự