Zazz Design Framework
Components

Alert dialog

A modal dialog that requires an explicit response to proceed.

An alert dialog is a Dialog with a stricter contract: <dialog class="ui-dialog ui-alert-dialog" role="alertdialog" closedby="none">. There is no close button and no light dismiss; Cancel or Confirm buttons are the only ways to dismiss it. It composes standard dialog slots (dialog-content, dialog-header, dialog-body, dialog-footer) and uses a native <dialog> opened with Invoker Commands.

Give the dialog aria-labelledby pointing to the heading and aria-describedby pointing to the body so the prompt and its consequences are announced together.

Default

Loading components…

API

AttributeTargetValues
commandTriggershow-modal; close on the Cancel/Confirm buttons
commandforTriggerTarget <dialog> id
role.ui-alert-dialogalertdialog
closedby.ui-alert-dialognone: the alert contract

On this page