Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix entire page disapearing when theme buttons double-clicked #65

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

Owen-Morgan825
Copy link
Contributor

When theme buttons (light mode, dark mode, and system theme buttons) are double-clicked, they make the entire page suddenly disappear.

Temporarily fixed by not setting the style of the page if what it's supposed to become is a blank string (which is happening, despite type Theme being one of 'light', 'dark', or 'system').

The cause of this happening is currently unknown (to me, at least)

@Owen-Morgan825
Copy link
Contributor Author

Checks seem to be failing because of the theme === empty string comparison.

The only way I can see to fix that is to make "" be a part of the Theme type.

Copy link

PR Preview Action v1.6.0

🚀 View preview at
https://FRC2713.github.io/QRScout/pr-preview/pr-65/

Built to branch gh-pages at 2025-01-16 23:05 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@Owen-Morgan825 Owen-Morgan825 merged commit 6ef0912 into main Jan 18, 2025
1 check passed
@Owen-Morgan825 Owen-Morgan825 deleted the fix-disapearing branch January 18, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant