This is an automated email from the ASF dual-hosted git repository.

kparisa pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 4cc0b973 fix: clear forced theme on navigation (#87)
4cc0b973 is described below

commit 4cc0b973392787edb12a72822ba80af6c2ddc29f
Author: saie-ch <[email protected]>
AuthorDate: Wed Sep 9 12:41:22 2026 +0530

    fix: clear forced theme on navigation (#87)
    
    Fix stale dark theme state when navigating from the homepage to Docs or
    Blogs.
    
    Co-authored-by: Sai Eswar <[email protected]>
---
 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 5f625950..1808ff26 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 || "";
     };
   }, []);

Reply via email to