Skip to content

Commit

Permalink
Fix use of hostStyle merged into state badge
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep committed Oct 25, 2023
1 parent f4ddcb8 commit ee8ad96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/entity/state-badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ export class StateBadge extends LitElement {
backgroundImage = `url(${imageUrl})`;
this._showIcon = false;
if (domain === "update") {
hostStyle.borderRadius = "0";
}
if (domain === "media_player") {
hostStyle.borderRadius = "8%";
this.style.borderRadius = "0";
} else if (domain === "media_player") {
this.style.borderRadius = "8%";
}
} else if (this.color) {
// Externally provided overriding color wins over state color
Expand Down

0 comments on commit ee8ad96

Please sign in to comment.