${this.title ? html`
${this.title}
` : ""}
-
-
- ${this.actionText
- ? html``
- : this.dismissable
- ? html``
- : ""}
-
-
+
+ ${this.actionText
+ ? html``
+ : this.dismissable
+ ? html``
+ : ""}
+
`;
@@ -100,7 +98,7 @@ class HaAlert extends LitElement {
.issue-type.rtl {
flex-direction: row-reverse;
}
- .issue-type::before {
+ .issue-type::after {
position: absolute;
top: 0;
right: 0;
@@ -111,18 +109,12 @@ class HaAlert extends LitElement {
content: "";
border-radius: 4px;
}
- slot > .icon {
- margin-right: 8px;
- width: 24px;
+ .icon {
+ z-index: 1;
}
.icon.no-title {
align-self: center;
}
- .issue-type.rtl > slot > .icon {
- margin-right: 0px;
- margin-left: 8px;
- width: 24px;
- }
.issue-type.rtl > .content {
flex-direction: row-reverse;
text-align: right;
@@ -135,6 +127,12 @@ class HaAlert extends LitElement {
}
.main-content {
overflow-wrap: anywhere;
+ margin-left: 8px;
+ margin-right: 0;
+ }
+ .issue-type.rtl > .main-content {
+ margin-left: 0;
+ margin-right: 8px;
}
.title {
margin-top: 2px;
@@ -146,31 +144,31 @@ class HaAlert extends LitElement {
ha-icon-button {
--mdc-icon-button-size: 36px;
}
- .issue-type.info > slot > .icon {
+ .issue-type.info > .icon {
color: var(--info-color);
}
- .issue-type.info::before {
+ .issue-type.info::after {
background-color: var(--info-color);
}
- .issue-type.warning > slot > .icon {
+ .issue-type.warning > .icon {
color: var(--warning-color);
}
- .issue-type.warning::before {
+ .issue-type.warning::after {
background-color: var(--warning-color);
}
- .issue-type.error > slot > .icon {
+ .issue-type.error > .icon {
color: var(--error-color);
}
- .issue-type.error::before {
+ .issue-type.error::after {
background-color: var(--error-color);
}
- .issue-type.success > slot > .icon {
+ .issue-type.success > .icon {
color: var(--success-color);
}
- .issue-type.success::before {
+ .issue-type.success::after {
background-color: var(--success-color);
}
`;
diff --git a/src/panels/config/dashboard/ha-config-updates.ts b/src/panels/config/dashboard/ha-config-updates.ts
index 29d89f0be7..1e7b2003ab 100644
--- a/src/panels/config/dashboard/ha-config-updates.ts
+++ b/src/panels/config/dashboard/ha-config-updates.ts
@@ -1,5 +1,5 @@
import "@material/mwc-button/mwc-button";
-import { mdiPackageVariant } from "@mdi/js";
+import { mdiPackageUp } from "@mdi/js";
import "@polymer/paper-item/paper-icon-item";
import "@polymer/paper-item/paper-item-body";
import {
@@ -63,7 +63,7 @@ class HaConfigUpdates extends LitElement {
${update.update_type === "addon"
? update.icon
? html`