From d5d9a71f88a57714a4c99f4b57fd89c1c983842d Mon Sep 17 00:00:00 2001 From: Sai Eswar Date: Tue, 8 Sep 2026 21:35:24 +0530 Subject: [PATCH] fix: clear forced theme on navigation --- src/components/force-dark-theme.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/force-dark-theme.tsx b/src/components/force-dark-theme.tsx index 5f6259508..1808ff266 100644 --- a/src/components/force-dark-theme.tsx +++ b/src/components/force-dark-theme.tsx @@ -32,6 +32,7 @@ export function ForceDarkTheme() { return () => { if (prev) root.setAttribute("data-theme", prev); + else root.removeAttribute("data-theme"); root.style.colorScheme = prevScheme || ""; }; }, []);