Bug: Duplicate Theme Toggle Buttons in Navbar – Only One Functions
##Description The application navbar currently displays two theme toggle buttons. However, only the right-side toggle successfully switches between light and dark mode. The left-side toggle appears interactive but does not perform any action when clicked. This creates confusion for users because both controls appear to serve the same purpose, but only one is functional.
##Steps to Reproduce
- Open the application.
- Navigate to the top navigation bar.
- Locate the two theme toggle buttons displayed next to each other.
- Click the left theme toggle button.
- Observe that no theme change occurs.
- Click the right theme toggle button.
- Observe that the theme changes successfully.
##Expected Behaviour
- Both theme toggle buttons should work correctly, or
- Only a single functional theme toggle button should be displayed.
##Actual Behaviour
- The left theme toggle button has no effect when clicked.
- The right theme toggle button works as expected.
- Users may assume the application is unresponsive or broken.
##Impact
- Confusing user experience.
- Inconsistent UI behaviour.
- Redundant control displayed in the navigation bar.
##Environment
- Browser: Google Chrome
- Device: Desktop/Laptop
- Verified after refresh and repeated testing.
##Screenshot
Hi, @komalharshita Please assign this issue to me Thankyou...
Hi @komalharshita! I am participating in GSSoC 2026 and would like to work on this issue. Could you please assign it to me? Thanks!
Hi! I'd like to work on this issue under GSSoC 2026.
Approach: I'll locate the duplicate theme toggle in the navbar HTML (likely in templates/index.html or templates/base.html), remove the redundant non-functional button, and verify the remaining toggle correctly dispatches the theme switch via the existing JavaScript handler. I'll also ensure the fix works across all pages that share the navbar partial.
I have experience with HTML, CSS, and JavaScript. Please assign me this issue.
Hi! I'd like to work on this issue under GSSoC 2026.
Approach: I'll audit the navbar for duplicate theme toggle instances, consolidate the theme state into a single localStorage-backed source of truth, and ensure only one toggle button renders with correct sync between dark/light mode state and the toggle icon.
I have experience with JavaScript DOM manipulation and debugging duplicated UI state issues. Please assign me this issue.
Hi, I am a contributor under GSSoC'26 and would like to work on this issue. Could you please assign it to me as my system is ready to work on it
Hi @komalharshita, I am participating in GSSoC 2026 and would like to work on this issue. Could you please assign it to me? I will inspect the navbar, remove or fix the non-functional duplicate theme toggle button, and ensure the remaining toggle works consistently across all pages. Thank you!
Hi @komalharshita,
I would love to resolve this theme toggle issue under GSSoC 2026!
I've reviewed the issue description, and the redundant/non-functional left toggle is likely due to an accidental duplicate component invocation or a responsive layout glitch (e.g., mobile and desktop toggles rendering simultaneously).
My plan to fix this:
- Locate the navbar component file and investigate why two toggles are rendering.
- If one is a redundant duplicate, remove it. If it’s meant for a specific screen size (responsive design), ensure proper utility classes (like Tailwind's
hidden md:blockorblock md:hidden) are applied. - Verify that the remaining toggle(s) have the correct
onClickstate handler attached and switch themes seamlessly across desktop and mobile views.
Could you please assign this issue to me? I can get started on a clean fix right away. Thank you!
@komalharshita , I would like to work on this issue /assign it to me under GSSoC 2026 TAG
@priya434960 I would like to work on this issue / assign it to me under GSSOC 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.