Switch
스위치
Switch는 설정을 켜거나 끄고, 보통 바로 바뀌어.
실제 예시
다크 모드를 켜면 화면이 즉시 어두운 색으로 바뀝니다.
주요 부분
- 01시각적 레이블
- 02Interaction target
- 03Current state
- 04Keyboard behavior
사용할 때
명확한 레이블이 있는 켜기/끄기 설정으로 사용하십시오.
다음 경우에는 사용하지 마세요
사람들이 여전히 별도의 저장 버튼을 눌러야 하는 형태의 폼에 절대 넣지 마세요.
코드에서 사용된 이름
role="switch" 출시하기 전에
Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery.
Outcome:Complete the task with 스위치 (Switch)。 User context:다크 모드를 켜면 화면이 즉시 어두운 색으로 바뀝니다. Recommended pattern:스위치 (Switch)。 Why it fits:명확한 레이블이 있는 켜기/끄기 설정으로 사용하십시오. Do not use it when:사람들이 여전히 별도의 저장 버튼을 눌러야 하는 형태의 폼에 절대 넣지 마세요. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary):이 표준은 나열된 범위만 적용합니다. 시각적 스타일, 제품 결정, 또는 Vibulary 예시는 선택하지 않습니다. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
이 요청을 확인하세요
Review how 스위치 (Switch) is used now. Definition: Switch는 설정을 켜거나 끄고, 보통 바로 바뀌어. Release checks: Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.