[Bug]: Search Bar and Dark Mode Toggle Not Working

#5253 · open · 4 comments

View on GitHub ↗

Muskan-kagzi

### Give a brief about the bug ✍️ Description: 1)Search bar is not filtering/searching games correctly 2)Light/Dark mode toggle is not functioning ### What is the expected behavior? 🤔 Description: 1)Debug and fix search functionality 2)Fix theme toggle logic and UI state handling 3)Ensure both features work properly across pages ### Provide step by step information reproduce the bug 📄 Description: 1)Search Bar Issue:- Open the GameZone website Navigate to the homepage containing the games list Locate the search bar Enter the name of any game in the search field Observe that the games are not being filtered/displayed correctly 2)Dark/Light Mode Toggle Issue :- Open the GameZone website Locate the dark/light mode toggle button Click on the toggle button Observe that the website theme does not change properly or the toggle functionality does not respond 3)Expected Behavior :- Search bar should correctly filter and display games based on user input Theme toggle should properly switch between dark mode and light mode 4)Proposed Solution :- Debug the JavaScript logic connected to the search functionality Verify event listeners and DOM element selection for the search bar Debug the theme toggle logic and class switching mechanism Ensure proper CSS classes/localStorage handling for theme persistence Test functionality across different pages and screen sizes ### Select program in which you are contributing _No response_ ### Code of Conduct - [x] I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project.

Comments

kunjgit

Hey @Muskan-kagzi ! Thank you for raising an issue 💗 You can self assign the issue by commenting /assign in comment 😀 Make sure you follow [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) and [CONTRIBUTING GUIDELINES](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) 🚀 Don’t Forget to ⭐ our [GameZone🎮](https://github.com/kunjgit/GameZone) Make sure you join our [Discord🕹️](https://discord.gg/fgwk4XZfxG)

Muskan-kagzi

/assign

kunjgit

Hey @Jaydeep077 ! , This issue is already assigned to @Muskan-kagzi. 💗 You can work on other issues 🚀 If there is anything wrong you can contact us on [Discord🕹️](https://discord.gg/fgwk4XZfxG)👀

AshishCh01

Hi @kunjgit I noticed this issue has been assigned for some time, but I don’t see an associated PR yet. If it’s still available, I’d be happy to work on it. Could you please assign it to me?