Skip to content

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

@Muskan-kagzi

Description

@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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions