Resolve #7533 Broken styling on stack card titles (#7534)

This commit is contained in:
dklemm 2020-10-30 13:47:09 +00:00 committed by GitHub
parent 4bc8818145
commit 9b22b1e499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -89,6 +89,9 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
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;