Alert Dialog
Warndialog
Ein Warndialog ist ein Fenster für eine dringende Wahl. Man muss die Folge verstehen, bevor man weitermacht.
role="alertdialog"Ein echtes Beispiel
Bevor der Müll für immer geleert wird, erklärt der Dialog, was verloren geht. Er bietet eine sichere Abbrechen-Wahl.
Hauptteile
- 01Auslösen
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
Verwenden Sie es, wenn
Verwenden Sie es für eine zerstörerische oder irreversible Entscheidung oder eine, die sofort ernsthafte Folgen hat.
Nutze es nicht, wenn
Bitte niemals wiederholt um Bestätigung bei harmlosen Aktionen, die rückgängig gemacht werden können.
In Code verwendeter Name
role="alertdialog" Vor dem Ausliefern
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome: Complete the task with Warndialog (Alert Dialog). User context: Bevor der Müll für immer geleert wird, erklärt der Dialog, was verloren geht. Er bietet eine sichere Abbrechen-Wahl. Recommended pattern: Warndialog (Alert Dialog). Why it fits: Verwenden Sie es für eine zerstörerische oder irreversible Entscheidung oder eine, die sofort ernsthafte Folgen hat. Do not use it when: Bitte niemals wiederholt um Bestätigung bei harmlosen Aktionen, die rückgängig gemacht werden können. 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 Warndialog (Alert Dialog) is used now. Definition: Ein Warndialog ist ein Fenster für eine dringende Wahl. Man muss die Folge verstehen, bevor man weitermacht. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.