Commit 843c639

HPCesia <me@hpcesia.com>
2025-02-08 15:30:53
fix: darkmode icon
1 parent dc5a484
Changed files (1)
src
components
src/components/widgets/DarkModeButton.astro
@@ -13,7 +13,7 @@ const { class: className, showText, ...rest } = Astro.props;
 ---
 
 <Button
-  class:list={['darkmode-btn swap swap-rotate', className]}
+  class:list={['darkmode-btn swap', className]}
   {...rest}
   data-text-light={i18n(I18nKey.lightMode)}
   data-text-dark={i18n(I18nKey.darkMode)}
@@ -81,6 +81,7 @@ const { class: className, showText, ...rest } = Astro.props;
         } else if (!checkbox.checked) {
           checkbox.checked = true;
         } else {
+          checkbox.checked = false;
           checkbox.indeterminate = true;
         }