The appearance: "force-auto" implemented in #3946 1e8bb48 has a small bug where if the user had previously set the preferred color scheme using the appearance toggle, then useDark would retain that preference from local storage rather than respecting the system color scheme. This switches to usePreferredDark for "force-auto", thereby ignoring whatever is (or was) in local storage and always respecting the system color scheme.
Linked Issues
3946
Additional Context
[!TIP]
The author of this PR can publish a preview release by commenting /publish below.
Description
The
appearance: "force-auto"
implemented in #3946 1e8bb48 has a small bug where if the user had previously set the preferred color scheme using the appearance toggle, thenuseDark
would retain that preference from local storage rather than respecting the system color scheme. This switches tousePreferredDark
for"force-auto"
, thereby ignoring whatever is (or was) in local storage and always respecting the system color scheme.Linked Issues
3946
Additional Context