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: improve handling of dark mode preferences #4389

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

jonkoops
Copy link
Contributor

Improves the handling of dark mode preferences by respecting the system/browser preference of the user first, and storing the preference in local storage when the user toggles the switch manually in the user interface. This allows the preference to be persisted between other tabs and windows.

Closes #4365

@jonkoops jonkoops force-pushed the dark-mode-improvements branch from 5e6a088 to b252f95 Compare November 21, 2024 18:07
@patternfly-build
Copy link
Contributor

patternfly-build commented Nov 21, 2024

@jonkoops jonkoops force-pushed the dark-mode-improvements branch from b252f95 to b6ea0d4 Compare November 22, 2024 10:30
@dlabaj dlabaj merged commit 1580900 into patternfly:main Nov 22, 2024
4 checks passed
@jonkoops jonkoops deleted the dark-mode-improvements branch November 22, 2024 22:32
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.

Bug - Dark and light mode are not saved when refreshing the browser
3 participants