Checkbox
Kontrollkästchen
Eine Checkbox ist ein Kästchen, das du ankreuzen oder leeren kannst. Jede Wahl ist für sich allein wichtig.
Ein echtes Beispiel
Eine Person kann E-Mail-Updates, Produktstudien, beides oder nichts davon wählen.
Hauptteile
- 01Sichtbares Etikett
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Verwenden Sie es, wenn
Verwenden Sie Kontrollkästchen, wenn mehrere Optionen gleichzeitig zutreffen können oder für eine optionale Zustimmung.
Nutze es nicht, wenn
Verwenden Sie niemals einen für eine Einstellung, die sich auf einmal ändert. Ein Schalter erklärt das oft besser.
In Code verwendeter Name
<input type="checkbox"> Vor dem Ausliefern
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 Kontrollkästchen (Checkbox). User context: Eine Person kann E-Mail-Updates, Produktstudien, beides oder nichts davon wählen. Recommended pattern: Kontrollkästchen (Checkbox). Why it fits: Verwenden Sie Kontrollkästchen, wenn mehrere Optionen gleichzeitig zutreffen können oder für eine optionale Zustimmung. Do not use it when: Verwenden Sie niemals einen für eine Einstellung, die sich auf einmal ändert. Ein Schalter erklärt das oft besser. 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): Der Standard deckt nur den aufgeführten Umfang ab. Er wählt nicht den visuellen Stil, die Produktentscheidung oder das Vibulary-Beispiel aus. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Diese Anfrage prüfen
Review how Kontrollkästchen (Checkbox) is used now. Definition: Eine Checkbox ist ein Kästchen, das du ankreuzen oder leeren kannst. Jede Wahl ist für sich allein wichtig. 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.