DevPath icon indicating copy to clipboard operation
DevPath copied to clipboard

Bug: Duplicate Theme Toggle Buttons in Navbar – Only One Functions

Open priya434960 opened this issue 5 months ago • 10 comments

##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

  1. Open the application.
  2. Navigate to the top navigation bar.
  3. Locate the two theme toggle buttons displayed next to each other.
  4. Click the left theme toggle button.
  5. Observe that no theme change occurs.
  6. Click the right theme toggle button.
  7. 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

Image

Hi, @komalharshita Please assign this issue to me Thankyou...

priya434960 avatar Jun 04 '26 13:06 priya434960

Hi @komalharshita! I am participating in GSSoC 2026 and would like to work on this issue. Could you please assign it to me? Thanks!

rishit537 avatar Jun 04 '26 13:06 rishit537

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.

PranavAgarkar07 avatar Jun 04 '26 16:06 PranavAgarkar07

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.

PranavAgarkar07 avatar Jun 04 '26 16:06 PranavAgarkar07

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

Stewartsson avatar Jun 04 '26 17:06 Stewartsson

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!

dbharathi9599 avatar Jun 06 '26 14:06 dbharathi9599

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:

  1. Locate the navbar component file and investigate why two toggles are rendering.
  2. 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:block or block md:hidden) are applied.
  3. Verify that the remaining toggle(s) have the correct onClick state 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!

jyotsnak1603 avatar Jun 07 '26 10:06 jyotsnak1603

@komalharshita , I would like to work on this issue /assign it to me under GSSoC 2026 TAG

ArpitTiwari-Code avatar Jun 08 '26 14:06 ArpitTiwari-Code

@priya434960 I would like to work on this issue / assign it to me under GSSOC 2026

yuvizen1912 avatar Jun 25 '26 01:06 yuvizen1912

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!

github-actions[bot] avatar Nov 13 '26 07:11 github-actions[bot]

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.

github-actions[bot] avatar Nov 20 '26 08:11 github-actions[bot]