From d6a0528efbd71118028354883b44963f4de9076c Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 27 Feb 2024 11:40:37 +0100 Subject: [PATCH] Focus cancel button on destructive confirmation dialog --- 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 { `}