Fix stack style in panel view (#20135)

This commit is contained in:
Paul Bottein 2024-03-25 15:55:19 +01:00 committed by GitHub
parent 447932eedb
commit db3709952c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
static get sharedStyles(): CSSResultGroup {
return css`
.card-header {
color: var(--ha-card-header-color, --primary-text-color);
color: var(--ha-card-header-color, var(--primary-text-color));
font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px);
font-weight: normal;
@ -98,6 +98,11 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
display: block;
padding: 24px 16px 16px;
}
:host {
--ha-card-border-radius: inherit !important;
--ha-card-border-width: inherit !important;
--ha-card-box-shadow: inherit !important;
}
`;
}

View File

@ -130,7 +130,12 @@ export class PanelView extends LitElement implements LovelaceViewElement {
:host {
display: block;
height: 100%;
}
* {
--ha-card-border-radius: 0;
--ha-card-border-width: 0;
--ha-card-box-shadow: none;
}
ha-fab {