+ ? html`
${this.supervisor.localize(
"system.supervisor.unhealthy_title"
)}
+
+
`
: ""}
@@ -466,6 +470,9 @@ class HassioSupervisorInfo extends LitElement {
white-space: normal;
color: var(--secondary-text-color);
}
+ ha-alert mwc-button {
+ --mdc-theme-primary: var(--primary-text-color);
+ }
a {
text-decoration: none;
}
diff --git a/src/components/ha-alert.ts b/src/components/ha-alert.ts
index 236ae8c7c5..93df6b7e24 100644
--- a/src/components/ha-alert.ts
+++ b/src/components/ha-alert.ts
@@ -1,4 +1,3 @@
-import "@material/mwc-button/mwc-button";
import {
mdiAlertCircleOutline,
mdiAlertOutline,
@@ -23,7 +22,6 @@ const ALERT_ICONS = {
declare global {
interface HASSDomEvents {
"alert-dismissed-clicked": undefined;
- "alert-action-clicked": undefined;
}
}
@@ -37,8 +35,6 @@ class HaAlert extends LitElement {
| "error"
| "success" = "info";
- @property({ attribute: "action-text" }) public actionText = "";
-
@property({ type: Boolean }) public dismissable = false;
@property({ type: Boolean }) public rtl = false;
@@ -63,12 +59,7 @@ class HaAlert extends LitElement {
- ${this.actionText
- ? html``
- : this.dismissable
+ ${this.dismissable
? html`