Skip to content

Commit

Permalink
Fix setting styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Nov 15, 2024
1 parent f3126d1 commit 9721592
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/utils/container-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ export function applyContainerStyles(container: HTMLElement, darkmode: boolean |
const resolvedDarkmode = resolveDarkmode(darkmode);

for (const [prop, value] of Object.entries(styles)) {
if (stylesBeforeApply.has(container)) {
saveContainerStyleProp(container, prop, containerStyles);
container.style.setProperty(prop, value);
}
saveContainerStyleProp(container, prop, containerStyles);
container.style.setProperty(prop, value);
}

for (const [prop, value] of Object.entries(darkmodeStyles)) {
Expand Down

0 comments on commit 9721592

Please sign in to comment.