You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preference of dark mode is stored in localStorage, this gets executed after the dom is ready and after which the required attribute is added to the body and the CSS kicks in. On slower connections this causes a flash of colors where it first loads with different style and then switches to the preferred style.
This can be emulated on local with fast or slow 3g network throttling -
Screen.Recording.2022-08-31.at.10.00.24.AM.mp4
Expected Behaviour
Page loads with preferred style instead of changing the style after load,
Steps to reproduce
In the network inspector set the throttling to slow/fast 3G
Set the default of the dark mode to light from theme
In the frontend change the preference to be dark mode
See the color scheme change,
Screenshots
Additional context
WordPress version:
Plugin version:
Gutenberg plugin version (if applicable):
PHP version:
OS:
Browser: [e.g. chrome, safari]
Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered:
Bug Description
The preference of dark mode is stored in localStorage, this gets executed after the dom is ready and after which the required attribute is added to the body and the CSS kicks in. On slower connections this causes a flash of colors where it first loads with different style and then switches to the preferred style.
This can be emulated on local with fast or slow 3g network throttling -
Screen.Recording.2022-08-31.at.10.00.24.AM.mp4
Expected Behaviour
Page loads with preferred style instead of changing the style after load,
Steps to reproduce
Screenshots
Additional context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: