Redesign ha-button (#25564)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Wendelin
2025-07-30 16:15:18 +02:00
committed by GitHub
parent 6dbfc2f4ed
commit fa758f2bee
318 changed files with 3333 additions and 2189 deletions

View File

@@ -106,6 +106,7 @@ class DialogBox extends LitElement {
@click=${this._dismiss}
?dialogInitialFocus=${!this._params.prompt &&
this._params.destructive}
appearance="plain"
>
${this._params.dismissText
? this._params.dismissText
@@ -116,7 +117,7 @@ class DialogBox extends LitElement {
@click=${this._confirm}
?dialogInitialFocus=${!this._params.prompt &&
!this._params.destructive}
?destructive=${this._params.destructive}
variant=${this._params.destructive ? "danger" : "brand"}
>
${this._params.confirmText
? this._params.confirmText