diff --git a/src/panels/lovelace/cards/hui-button-card.ts b/src/panels/lovelace/cards/hui-button-card.ts
index f6cc9b0bcd..957c8a868b 100644
--- a/src/panels/lovelace/cards/hui-button-card.ts
+++ b/src/panels/lovelace/cards/hui-button-card.ts
@@ -224,19 +224,19 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
filter: colored ? stateColorBrightness(stateObj) : undefined,
height: this._config.icon_height
? this._config.icon_height
- : "",
+ : undefined,
})}
>
`
- : ""}
+ : nothing}
${this._config.show_name
? html`${name}`
- : ""}
+ : nothing}
${this._config.show_state && stateObj
? html`
${this.hass.formatEntityState(stateObj)}
`
- : ""}
+ : nothing}
`;
}
@@ -282,7 +282,8 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
align-items: center;
text-align: center;
padding: 4% 0;
- font-size: 16.8px;
+ font-size: var(--ha-font-size-l);
+ line-height: var(--ha-line-height-condensed);
height: 100%;
box-sizing: border-box;
justify-content: center;