fix(css): leave tailwind theme vars on :root so obsidian's accent wins inside the view
This commit is contained in:
1 parent
8c971e431a
commit
4f485b0bc4
2 files changed
+6
-7
No files matched your search
@@ -40,9 +40,9 @@ describe("scoping the built stylesheet", () => {
|
||||
expect(out).not.toContain("*)*");
|
||||
});
|
||||
|
||||
it("moves theme variables from :root onto the view root", () => {
|
||||
it("leaves tailwind's theme variables on :root, under obsidian's body values", () => {
|
||||
expect(one(":root,:host{--spacing:.25rem}")).toBe(
|
||||
".bcal-root { --spacing: .25rem; }",
|
||||
":root, :host { --spacing: .25rem; }",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user