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

Allow system default of dark mode if theme value is unrecognized #440

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

J-T-McC
Copy link
Contributor

@J-T-McC J-T-McC commented Feb 5, 2025

I ran into a theme issue while using pulse along side a filament admin panel. Filament uses the same local storage key of "theme" but sets the theme to the value of "system" where as pulse expects the theme to be undefined. This caused pulse to load the light theme by default rather than dark if the users system was set to dark mode.

This PR adds a check to ignore any unexpected theme values when checking for the system preference of dark mode.

@taylorotwell taylorotwell merged commit 514ed5e into laravel:1.x Feb 6, 2025
24 checks passed
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.

2 participants