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

aria-toggle-field-name

하는 일

이 스킬은 체크박스, 라디오 버튼, 스위치마다 명확한 이름이 있는지 확인합니다. 양식과 설정 페이지에 토글을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓체크박스, 라디오 버튼, 스위치를 만들 때.
  • ✓토글에 보이는 라벨이 없거나 아이콘만 있을 때.
  • ✓설정 페이지의 스위치에 스크린 리더용 설명이 없을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-toggle-field-name/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-toggle-field-name/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분.

작동 방식

에이전트가 각 토글에 label 요소, aria-label, aria-labelledby 중 하나가 있는지 확인하고, 없는 곳에는 명확한 이름을 추가합니다.

기술 내용 (원본 SKILL.md)

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

Provide accessible names for toggle fields

Toggle fields like checkboxes and switches are unusable for screen reader users if they don't have a label, as the user won't know what they are turning on or off.

Quick Reference

  • Use aria-label, aria-labelledby, or <label> for checkboxes and radios
  • Ensure the label clearly describes the state or action of the toggle
  • Avoid empty or non-descriptive labels for switches

Check

Check all toggle fields (checkboxes, radio buttons, switches) for a valid accessible name.

Fix

Add an accessible name to the toggle field using a label element, aria-label, or aria-labelledby.

Explain

Explain why all interactive toggle controls must have descriptive names for users to understand their purpose.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for toggle fields. 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/aria-toggle-field-name

자주 묻는 질문

토글에 이름이 왜 필요한가요?

이름이 없으면 사용자가 무엇을 켜고 끄는지 알 수 없다고 스킬은 설명합니다.

토글에 이름을 붙이는 방법은 무엇인가요?

label 요소, aria-label 또는 aria-labelledby를 사용할 수 있습니다.

스위치는 특별히 신경 써야 하나요?

네. 스킬은 스위치에 빈 라벨이나 모호한 라벨을 붙이는 것을 경고합니다.

상세 정보

작성자의 원본 설명

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for toggle fields. 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
순위
#2739
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬