본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2851

focus-order

하는 일

이 스킬은 키보드 초점이 페이지를 지나가는 순서를 확인합니다. 키보드 사용자가 콘텐츠를 자연스럽게 이동할 수 있기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Tab을 누를 때 페이지를 혼란스럽게 건너뛸 때.
  • ✓양수 tabindex 값을 제거하고 싶을 때.
  • ✓대화상자를 닫은 뒤 초점이 올바른 곳으로 돌아오지 않을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/focus-order/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/focus-order/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 페이지의 탭 순서가 자연스러운지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 HTML 순서와 쓰인 tabindex 값을 검토합니다. 마크업을 화면의 배치와 맞추고, 양수 tabindex 숫자는 피하라고 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Ensure logical focus order

When focus jumps unexpectedly, keyboard users get disoriented and can't find content—mismatched visual and focus order makes navigation impossible.

Quick Reference

  • Tab order should match visual reading order (left-to-right, top-to-bottom)
  • DOM order determines tab order—arrange HTML to match visual layout
  • Never use positive tabindex values (1, 2, 3)—they break natural flow
  • Use CSS for visual positioning, not DOM reordering

Check

Tab through the page and verify focus moves in a logical sequence matching visual layout. Check that modals trap focus appropriately, and focus returns to triggering elements when dialogs close.

Fix

Order DOM elements to match visual layout. Avoid positive tabindex values which override natural order. Use tabindex='0' for custom interactive elements and tabindex='-1' for programmatic focus management.

Explain

Explain how keyboard users rely on predictable tab order to navigate efficiently, and why mismatched visual and focus order creates confusion and reduces usability for assistive technology users.

Code Review

Review the rendered markup and interactive states that affect Ensure logical focus order. 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/focus-order

자주 묻는 질문

탭 순서가 왜 중요한가요?

키보드 사용자는 페이지를 효율적으로 이동하기 위해 예측 가능한 순서에 의존합니다.

요소를 옮길 때 CSS를 써야 하나요?

HTML 순서를 바꾸기보다 CSS로 시각적 위치를 정하라고 이 스킬은 권장합니다.

tabindex 0과 -1은 무엇을 뜻하나요?

0은 사용자 정의 요소를 탭 순서에 넣고, -1은 코드에서만 초점을 받을 수 있게 한다고 설명합니다.

상세 정보

작성자의 원본 설명

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure logical focus order. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2851
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬