Skip to content

feat: Added Dark Mode but Needs Fixing After fetching Data #197

Open
@Adityakishore0

Description

@Adityakishore0

Summary

I have added a dark mode feature that works when toggled. However, I noticed an issue: after an API call, the dark mode toggle stops working. I am not sure why this happens, as I am using GitHub Codespaces.

Changes Made

  • Implemented dark mode toggle using JavaScript.
  • Updated background and text colors for dark mode.
  • Saved dark mode state in localStorage.

Issue Found

  • After making an API call, some elements lose dark mode styles.
  • The toggle button stops responding after an API call.

Next Steps

  • I will debug this issue further, but any suggestions are welcome!
  • If this PR is merged, we can open a new issue to track the dark mode bug.

Please review and let me know if I should make changes before merging! 😊

these two screenshots showcasing issues

gitingest.mp4
darkmode.issue.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions