From b9935717dc6da595ae7190bd2b1b886ab3c597c4 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 27 Feb 2024 12:51:35 +0100 Subject: [PATCH] Focus cancel button on destructive confirmation dialog (#19889) --- src/dialogs/generic/dialog-box.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dialogs/generic/dialog-box.ts b/src/dialogs/generic/dialog-box.ts index 2660b5679971..216b79b6374e 100644 --- a/src/dialogs/generic/dialog-box.ts +++ b/src/dialogs/generic/dialog-box.ts @@ -89,7 +89,12 @@ class DialogBox extends LitElement { ${confirmPrompt && html` - + ${this._params.dismissText ? this._params.dismissText : this.hass.localize("ui.dialogs.generic.cancel")} @@ -97,7 +102,8 @@ class DialogBox extends LitElement { `}