Skip to content

Commit

Permalink
Fix theme inheritance from root
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparalon committed Mar 22, 2024
1 parent baac139 commit d231ddb
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 d231ddb

Please sign in to comment.