diff --git a/src/panels/lovelace/badges/hui-entity-badge.ts b/src/panels/lovelace/badges/hui-entity-badge.ts index 9ee1e851af6e..cdfb302162d9 100644 --- a/src/panels/lovelace/badges/hui-entity-badge.ts +++ b/src/panels/lovelace/badges/hui-entity-badge.ts @@ -154,7 +154,7 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge { static get styles(): CSSResultGroup { return css` - :host() { + :host { --badge-color: var(--state-inactive-color); -webkit-tap-highlight-color: transparent; } @@ -195,6 +195,7 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge { } ha-state-icon { color: var(--badge-color); + line-height: 0; } `; }