orientation
Skill này làm gì
Skill này kiểm tra nội dung và điều khiển của trang có vẫn dùng được khi điện thoại hoặc máy tính bảng bị xoay không. Skill dành cho lập trình viên di động và front-end muốn mọi khách truy cập đều tiếp cận được.
Khi nào nên dùng
- ✓Khi bạn yêu cầu agent kiểm tra cách trang hoạt động khi điện thoại hoặc máy tính bảng bị xoay.
- ✓Khi trang hiển thị thông báo xoay thiết bị khiến nội dung hoặc biểu mẫu bị chặn.
- ✓Khi bạn xây luồng toàn màn hình, bảng điều khiển hoặc biểu mẫu có thể được dùng trên máy tính bảng.
Liên kết skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/orientation/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Trang của tôi yêu cầu người dùng xoay điện thoại và chặn trang. Bạn có thể làm cho nó hoạt động ở cả hai chiều không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm khóa xoay màn hình, lớp phủ yêu cầu xoay thiết bị và bố cục ẩn chức năng ở một chiều. Agent gỡ các chướng ngại đó và điều chỉnh bố cục bằng CSS đáp ứng để mọi thứ hoạt động sau khi xoay.
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.
Support both portrait and landscape orientation
Many users mount devices to wheelchairs, use tablets on stands, or cannot easily rotate a device. If a site only works in one orientation, these users may lose access to content or critical actions entirely.
Quick Reference
- Do not lock the interface to portrait-only or landscape-only unless the task truly requires it
- Ensure all core content and controls remain usable after device rotation
- Use responsive layouts that adapt instead of hiding functionality in one orientation
- If a specific orientation is essential, explain why and provide the best available alternative
Check
Rotate the page between portrait and landscape on mobile and tablet viewports. Verify all primary content, navigation, forms, and interactive controls remain available and usable in both orientations. Flag any use of orientation locks, rotate-device overlays that block content, or layouts that hide essential functionality in one orientation.
Fix
Remove orientation locks and redesign the layout to work in both portrait and landscape. Use responsive CSS, wrapping layouts, and adaptive spacing instead of blocking content behind a rotate-device message. Only keep an orientation requirement if the task is genuinely orientation-essential.
Explain
Explain why WCAG requires content to support both portrait and landscape unless orientation is essential to the activity, and how orientation locks can block users who cannot rotate their devices.
Code Review
Review responsive layouts, viewport handling, overlays, and any JavaScript related to device rotation. Flag exact selectors, components, or route states that require one orientation, hide essential content after rotation, or show blocking rotate-device messages instead of adapting the layout.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/orientation
Câu hỏi thường gặp
Vì sao việc xoay màn hình quan trọng với trợ năng?
Skill nói một số người gắn thiết bị lên xe lăn hoặc giá đỡ máy tính bảng và có thể không xoay được thiết bị.
Bố cục chỉ ngang hoặc chỉ dọc có bao giờ ổn không?
Skill nói chỉ nên giữ một chiều nếu tác vụ thật sự yêu cầu, và cần giải thích lý do.
Agent nên kiểm tra kết quả như thế nào?
Skill khuyên kiểm tra hành vi hiển thị ở cả chế độ dọc và ngang trên kích thước điện thoại và máy tính bảng.
Chi tiết
Mô tả gốc của tác giả
Use when reviewing mobile-first layouts, tablet experiences, fullscreen flows, forms, dashboards, or media interfaces. Check rendered behavior in both portrait and landscape and separate genuine layout constraints from unnecessary orientation assumptions.
Độ phổ biến
- Sao GitHub
- 75k
- Vị trí xếp hạng
- #2964
- Giấy phép
- MIT
- Cập nhật
- 31/10/2026
Bình luận
- …
Thêm skill từ kho mã này
frontendchecklist
75kKiểm tra mã frontend và trang trực tiếp theo hơn 380 quy tắc về khả năng tiếp cận, tốc độ, SEO và bảo mật, bằng một công cụ dòng lệnh.
frontend-checklist-global
75kKiểm toán một dự án frontend theo đủ 386 quy tắc của Front-End Checklist, và đưa cách sửa cụ thể cho từng vấn đề tìm thấy.
404-page
75kKiểm tra xem trang báo thiếu của bạn có đưa ra các liên kết hữu ích và trả về mã trạng thái 404 thật hay không, để giúp khách bị lạc tìm đường.
about-page
75kKiểm tra xem trang web có trang Giới thiệu rõ ràng giải thích ai điều hành nó hay không, để xây dựng niềm tin với khách và công cụ tìm kiếm.
Skill tương tự
android-clean-architecture
280kGiúp agent của bạn tổ chức dự án Android hiệu quả, cấu trúc code để việc bảo trì và phát triển tính năng mới dễ dàng hơn.
compose-multiplatform-patterns
280kGiúp agent của bạn dùng các mẫu Compose Multiplatform và Jetpack Compose trong dự án KMP, gồm trạng thái, điều hướng, giao diện và hiệu năng.
dart-flutter-patterns
280kGiúp agent của bạn viết code cho ứng dụng Dart và Flutter. Agent dùng các mẫu hiện đại để tạo ứng dụng vững chắc và dễ quản lý.