Skip to content

chore(mode): test of mode switcher to reduce light flash#4699

Merged
wise-king-sullyman merged 3 commits into
patternfly:mainfrom
srambach:test-mode-flash
Oct 8, 2025
Merged

chore(mode): test of mode switcher to reduce light flash#4699
wise-king-sullyman merged 3 commits into
patternfly:mainfrom
srambach:test-mode-flash

Conversation

@srambach
Copy link
Copy Markdown
Member

@srambach srambach commented Jul 8, 2025

Testing whether this fixes the flash of light mode when page is loaded/reloaded with "system" preference and system mode is dark.

@patternfly-build
Copy link
Copy Markdown
Collaborator

patternfly-build commented Jul 8, 2025

@srambach srambach marked this pull request as ready for review October 7, 2025 17:23
<script>
(function() {
try {
var mode = localStorage.getItem('theme-preference');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: If you switch this to a let declaration it should let you remove the IIFE.

@wise-king-sullyman wise-king-sullyman merged commit 8b2a59e into patternfly:main Oct 8, 2025
4 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.

Set browser color scheme to default to OS preference

3 participants