From 9b22b1e499d52d226898c8314f196a8901655eeb Mon Sep 17 00:00:00 2001 From: dklemm Date: Fri, 30 Oct 2020 13:47:09 +0000 Subject: [PATCH] Resolve #7533 Broken styling on stack card titles (#7534) --- src/components/ha-push-notifications-toggle.js | 8 ++++++-- src/panels/lovelace/cards/hui-stack-card.ts | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/ha-push-notifications-toggle.js b/src/components/ha-push-notifications-toggle.js index d50e1a16af..b8bead07fc 100644 --- a/src/components/ha-push-notifications-toggle.js +++ b/src/components/ha-push-notifications-toggle.js @@ -90,8 +90,12 @@ class HaPushNotificationsToggle extends EventsMixin(PolymerElement) { } const name = await showPromptDialog(this, { - title: this.hass.localize("ui.panel.profile.push_notifications.add_device_prompt.title"), - inputLabel: this.hass.localize("ui.panel.profile.push_notifications.add_device_prompt.input_label"), + title: this.hass.localize( + "ui.panel.profile.push_notifications.add_device_prompt.title" + ), + inputLabel: this.hass.localize( + "ui.panel.profile.push_notifications.add_device_prompt.input_label" + ), }); if (name == null) { this.pushChecked = false; diff --git a/src/panels/lovelace/cards/hui-stack-card.ts b/src/panels/lovelace/cards/hui-stack-card.ts index 728cd51075..aaa73530b4 100644 --- a/src/panels/lovelace/cards/hui-stack-card.ts +++ b/src/panels/lovelace/cards/hui-stack-card.ts @@ -89,6 +89,9 @@ export abstract class HuiStackCard color: var(--ha-card-header-color, --primary-text-color); font-family: var(--ha-card-header-font-family, inherit); font-size: var(--ha-card-header-font-size, 24px); + font-weight: normal; + margin-block-start: 0px; + margin-block-end: 0px; letter-spacing: -0.012em; line-height: 32px; display: block;