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

use usePreferredDark with appearance: "force-auto" #4263

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

mbostock
Copy link
Contributor

@mbostock mbostock commented Oct 9, 2024

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, 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.

@brc-dd brc-dd merged commit 3e8fc40 into vuejs:main Oct 9, 2024
8 checks passed
@mbostock mbostock deleted the mbostock/force-auto branch October 9, 2024 18:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants