From db03f37a7e4120ce89c353048b28d1c2285e6f63 Mon Sep 17 00:00:00 2001 From: Michael Naumov Date: Thu, 25 Jun 2026 20:20:15 -0600 Subject: [PATCH] scope button:not(.clickable-icon) color override to .tldraw-view-root The global rule applied `color: currentColor` to every button in Obsidian, not just tldraw's, overriding Obsidian's default button text color app-wide and breaking contrast outside tldraw (Settings buttons, Notice action buttons). Scope it to the tldraw view, matching the convention already used for the .tldraw-view-root .tlui-button override below it. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/styles.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/styles.css b/src/styles.css index 2a46686..dbcba59 100644 --- a/src/styles.css +++ b/src/styles.css @@ -24,7 +24,9 @@ visibility: hidden; } -button:not(.clickable-icon) { +/* Scoped to .tldraw-view-root so it only overrides Obsidian's button color inside + tldraw, instead of leaking to every button in the app (e.g. Settings, Notices). #203 */ +.tldraw-view-root button:not(.clickable-icon) { color: currentColor; }