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

aria-tooltip-name

Skill này làm gì

Skill này kiểm tra xem phần tử tooltip đã có tên hoặc được liên kết với phần tử mà nó mô tả hay chưa. Skill dành cho lập trình viên hiển thị gợi ý trên nút, biểu tượng hoặc ô nhập liệu.

Khi nào nên dùng

  • ✓Khi bạn tạo tooltip với role tooltip.
  • ✓Khi gợi ý của tooltip không bao giờ được trình đọc màn hình đọc lên.
  • ✓Khi bạn rà soát các component tooltip dùng chung về khả năng truy cập.

Liên kết skill

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

“Hãy đảm bảo tooltip ở biểu tượng thông tin của tôi được trình đọc màn hình đọc khi biểu tượng được focus.”

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

Cách hoạt động

Agent kiểm tra mỗi tooltip có tên hoặc được phần tử kích hoạt tham chiếu qua aria-describedby không, rồi sửa những tooltip chưa được liên kết.

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 tooltips

Tooltips often contain essential information; if they aren't properly named or associated with an element, that information remains hidden from screen reader users.

Quick Reference

  • Tooltips must have an accessible name or be referenced by aria-describedby
  • Ensure the tooltip content is actually accessible to assistive technology
  • Verify that tooltips are correctly associated with their trigger elements

Check

Verify that all elements with role="tooltip" have an accessible name or are linked to a trigger element via aria-describedby.

Fix

Assign an accessible name to the tooltip or ensure it is correctly referenced by the element it describes.

Explain

Explain how to correctly associate tooltips with triggers so that screen readers announce the extra information.

Code Review

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

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

Trình đọc màn hình sử dụng tooltip như thế nào?

Skill nói rằng liên kết đúng giúp trình đọc màn hình đọc thêm thông tin tại phần tử kích hoạt.

aria-describedby dùng để làm gì ở đây?

Nó liên kết phần tử kích hoạt với tooltip, để nội dung tooltip được đọc cùng với điều khiển.

Skill này chỉ kiểm tra tên và liên kết của tooltip đúng không?

Đúng. Skill tập trung vào tên và liên kết, không kiểm tra cách tooltip mở ra.

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 tooltips. 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
#2740
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ự