Skip to content

Commit

Permalink
Fix stack style in panel view (home-assistant#20135)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Mar 25, 2024
1 parent 447932e commit db37099
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/panels/lovelace/cards/hui-stack-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
`;
}

Expand Down
5 changes: 5 additions & 0 deletions src/panels/lovelace/views/hui-panel-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db37099

Please sign in to comment.