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

carousel-accessibility

Skill này làm gì

Skill này kiểm tra xem carousel và trình chiếu có thể tạm dừng, dùng bằng bàn phím và được trình đọc màn hình hiểu hay không. Skill dành cho lập trình viên xây slider trên website.

Khi nào nên dùng

  • ✓Khi website có carousel tự xoay.
  • ✓Khi người dùng bàn phím không thể chuyển giữa các slide.
  • ✓Khi người dùng trình đọc màn hình bỏ lỡ việc slide thay đổi.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/carousel-accessibility/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/carousel-accessibility/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 làm cho trình chiếu ở trang chủ của tôi có thể tạm dừng và dùng được bằng phím mũi tên.”

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

Cách hoạt động

Agent thêm nút tạm dừng và phát, điều hướng bằng phím mũi tên, một vùng live để thông báo khi slide đổi, và kiểm tra cài đặt giảm chuyển động.

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.

Make carousels accessible

Auto-playing carousels without controls trap users, cause disorientation, and violate WCAG requirements—proper implementation ensures all users can interact with slideshow content.

Quick Reference

  • Always provide pause/stop controls for auto-rotating carousels
  • Support keyboard navigation with arrow keys and tab
  • Use aria-live regions to announce slide changes
  • Respect prefers-reduced-motion preference

Check

Verify carousels have pause/play controls, keyboard navigation, proper ARIA roles, and respect prefers-reduced-motion.

Fix

Implement carousels with pause buttons, arrow key navigation, aria-live for announcements, and motion preference support.

Explain

Explain accessibility requirements for carousels including auto-play controls, keyboard access, and screen reader support.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make carousels accessible. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/carousel-accessibility

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

Vì sao carousel tự xoay cần nút tạm dừng?

Skill nói chúng có thể làm người dùng bị mắc kẹt, gây mất phương hướng và không đạt yêu cầu truy cập nếu thiếu nút này.

Trình đọc màn hình biết slide mới bằng cách nào?

Skill gợi ý dùng vùng aria-live để thông báo khi slide thay đổi.

Có nên tôn trọng cài đặt giảm chuyển động không?

Có. Skill nói nên tôn trọng cài đặt prefers-reduced-motion.

Chi tiết

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

Use when reviewing templates, rendered HTML, or shared components related to Make carousels accessible. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2768
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ự