Skip to content

Commit

Permalink
Home Assistant 2022.11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ov1d1u committed Nov 3, 2022
1 parent 6d8401d commit 87bd192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stack-in-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class StackInCard extends LitElement implements LovelaceCard {
margin: false,
box_shadow: false,
border_radius: false,
border: false,
...config.keep,
},
};
Expand Down Expand Up @@ -96,6 +97,7 @@ class StackInCard extends LitElement implements LovelaceCard {
private _updateStyle(e: LovelaceCard | null, withBg: boolean): void {
if (!e) return;
if (!this._config?.keep?.box_shadow) e.style.boxShadow = 'none';
if (!this._config?.keep?.border) e.style.border = 'none';
if (
!this._config?.keep?.background &&
withBg &&
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface KeepConfig {
margin?: boolean;
background?: boolean;
box_shadow?: boolean;
border?: boolean;
border_radius?: boolean;
outer_padding?: boolean;
}

0 comments on commit 87bd192

Please sign in to comment.