Closed datlechin closed 2 months ago
@SychO9 The logic behind auto is still preserved. If color_scheme
is set to auto, it falls back to the user's browser preference via RequestUtil::getActor()->getPreference('colorScheme')
. This ensures the same functionality while preventing the flash of light mode.
This PR fixes the issue where
data-theme
defaulted toauto
, causing a flash of light mode before switching to dark. It ensures the theme respects the user's preference for a smoother experience.Fixes #0000
Changes proposed in this pull request:
Reviewers should focus on:
Screenshot
QA
Necessity
Confirmed
composer test
).Required changes: