Accessibility
ConfirmDialog, ConfirmDialogConfirmation, ConfirmDialogVariant from @prepared911/ui/blocks/confirm-dialog.
dialog with role="alertdialog", named by the title heading and described by the description. The page behind it is inert.onConfirm. A backdrop press does nothing.aria-busy and shows a spinner with its label, the cancel Button is disabled, and Escape does not close the dialog. With pendingLabel, a polite status region announces it and it names the confirm Button.error is a role="alert" line, announced when it appears.prefers-reduced-motion. The surface's own motion is Dialog's.code run with dir="auto", so it keeps its own order inside a sentence of the other direction.aria-describedby points at the label), so a screen reader reading the Button hears what to type. The description is removed on a match.aria-invalid and shows no error line, because the person is still typing.matchedLabel, the polite status region announces when the text first matches, and clears when it stops matching. A pending confirm announces the pending label in the same region.translate="no". The typed text is compared with phrase as passed, so a translated phrase on screen would never match what the user types (ADR 0019 §7).