pytorch-ignite / code-generator

Web Application to generate your training scripts with PyTorch Ignite
https://code-generator.pytorch-ignite.ai/
BSD 3-Clause "New" or "Revised" License
40 stars 23 forks source link

Dark mode button resets to its default state instead of maintaining the set theme #351

Closed avinashsharma080 closed 8 months ago

avinashsharma080 commented 8 months ago

Describe the bug

Upon clicking the browser's back button, the theme toggler icon reverts to its initial state, rather than adjusting based on the theme as intended.

Expected result

The icon ought to be configured in accordance with the chosen theme.

Reproduction

After enabling dark mode on the website, navigating back to the home page of the code generator and then revisiting the "Get started" page results in the icon being altered, contrary to its intended behavior.

Steps to reproduce

  1. Navigate to the code generator page and click "Get Started."
  2. Switch the theme to dark mode and use the back button to return to the main webpage.
  3. Upon re-entering the "Get Started" page, the icon will reset, functioning contrary to the intended behavior.