Add dialog-box warning support (#7356)

This commit is contained in:
Philip Allgaier
2020-10-19 22:08:35 +02:00
committed by GitHub
parent 3ee4c11a99
commit a7ef8aba68
4 changed files with 11 additions and 3 deletions

View File

@@ -70,6 +70,7 @@ class DialogBox extends LitElement {
<p
class=${classMap({
"no-bottom-padding": Boolean(this._params.prompt),
warning: Boolean(this._params.warning),
})}
>
${this._params.text}
@@ -180,6 +181,9 @@ class DialogBox extends LitElement {
/* Place above other dialogs */
--dialog-z-index: 104;
}
.warning {
color: var(--warning-color);
}
`,
];
}