From b22405522d7c6667b1c32b37e8553c6d1f8b4333 Mon Sep 17 00:00:00 2001 From: Afsheen Nadaf Date: Fri, 2 Jan 2026 21:48:42 +0530 Subject: [PATCH] Fix theme toggle to show next theme state --- index.html | 4 ++-- package-lock.json | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 package-lock.json diff --git a/index.html b/index.html index 028f3ce28..490b3a592 100644 --- a/index.html +++ b/index.html @@ -199,8 +199,8 @@

Contribute to this Project

html.dataset.bsTheme = theme; localStorage.setItem('theme', theme); const isLight = theme === 'light'; - lightIcon.classList.toggle('d-none', !isLight); - darkIcon.classList.toggle('d-none', isLight); + lightIcon.classList.toggle('d-none', isLight); + darkIcon.classList.toggle('d-none', !isLight); lightLogo.classList.toggle('d-none', !isLight); darkLogo.classList.toggle('d-none', isLight); } diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..ae8fffa94 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "DISCOVER-Cookbook", + "lockfileVersion": 3, + "requires": true, + "packages": {} +}