Skip to content

Commit

Permalink
Fix theme inheritance from root (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparalon authored Mar 22, 2024
1 parent baac139 commit 09f0df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-graph-analysis",
"version": "0.11.2",
"version": "0.11.3",
"type": "module",
"main": "./dist/index.html",
"license": "GPL",
Expand Down
2 changes: 1 addition & 1 deletion src/settings/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const darkTheme: Theme = {
};

export const setThemeColors = () => {
const root = parent.document.querySelector(":root");
const root = parent.document.querySelector("#root");
if (root) {
const rootStyles = getComputedStyle(root);
document.body.style.setProperty("--theme-background", rootStyles.getPropertyValue("--ls-primary-background-color") || "#ffffff");
Expand Down

0 comments on commit 09f0df9

Please sign in to comment.