Skip to content

Commit

Permalink
Append CSS styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Mar 4, 2021
1 parent cd6ca6a commit 5abe421
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/generic-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ if (moduleEnabled(MODULE)) {

// ha-card elements have default transition that we need to temporarily disable.
this.style.transition = "none";
this.style.cssText = "";

if (config.canary_theme && extensionEnabled(config, "canary_theme")) {
applyTheme(this, hass().themes, config.canary_theme);
Expand All @@ -30,6 +29,7 @@ if (moduleEnabled(MODULE)) {

// flush css.
this.offsetHeight;

// restore transition.
this.style.transition = "";
});
Expand Down
2 changes: 0 additions & 2 deletions src/modules/generic-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ if (moduleEnabled(MODULE)) {
}
}

this.style.cssText = "";

if (
this.config.canary_theme &&
extensionEnabled(this.config, "canary_theme")
Expand Down

0 comments on commit 5abe421

Please sign in to comment.