Chuyển đến nội dung
Skillpedia
Ứng dụng di động75k · #2964

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.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/orientation/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

“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.

repo: thedaviddias/Front-End-Checklist

Độ 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

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ự