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

accordion-accessibility

하는 일

이 스킬은 아코디언 같은 접을 수 있는 섹션을 모두가 열고 이해할 수 있는지 확인합니다. FAQ 목록이나 펼침 메뉴를 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓아코디언이나 접을 수 있는 FAQ 섹션을 만들 때.
  • ✓키보드 사용자가 펼쳐진 패널 안에서 갇힐 때.
  • ✓스크린 리더 사용자가 어떤 섹션이 열려 있는지 알 수 없을 때.

스킬 링크

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

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 가격 페이지의 FAQ 아코디언이 키보드와 스크린 리더에서 작동하도록 만들어 주세요.”

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

작동 방식

에이전트는 각 섹션 머리글이 펼침 상태를 가진 실제 버튼인지, 패널과 연결되어 있는지, 예상되는 키가 섹션을 이동하고 여닫는지 확인합니다.

기술 내용 (원본 SKILL.md)

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

Make accordions keyboard navigable

Poorly implemented accordions trap keyboard users and leave screen reader users unable to understand or navigate collapsed content sections.

Quick Reference

  • Use button elements for accordion triggers with aria-expanded
  • Associate panels with triggers using aria-controls
  • Support Arrow keys for navigation between headers
  • Use heading elements appropriately for document structure

Check

Verify accordions use button triggers with aria-expanded, aria-controls, and proper keyboard navigation (Enter, Space, arrows).

Fix

Implement accordions with button elements, aria-expanded state, aria-controls linking to content panels, and keyboard support.

Explain

Explain the ARIA pattern for accessible accordions and how they enable keyboard and screen reader users to navigate collapsible content.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make accordions keyboard navigable. 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/accordion-accessibility

자주 묻는 질문

아코디언 머리글은 왜 버튼이어야 하나요?

버튼은 키보드 지원을 기본으로 가지며 스크린 리더가 올바르게 알려 주지만, 클릭만 되는 상자는 그렇지 않습니다.

aria-expanded는 스크린 리더에 무엇을 알려 주나요?

섹션이 지금 열려 있는지 닫혀 있는지를 알려 줍니다.

스킬이 화살표 키도 다루나요?

네. 좋은 아코디언 동작의 일부로, 머리글 사이를 이동하는 화살표 키를 나열합니다.

상세 정보

작성자의 원본 설명

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

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬