-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
auto
theme does not respond to change in system/browser preferences
#1684
Comments
@at-the-vr - Correct 😃 I've edited my OP repro step |
Thank you for the issue @techfg! Yes, when implementing this initially, I skipped over this as an edge case. Would be happy to look at a PR adding this if you’d like to have a go. Let me know if you have any questions! |
What version of
starlight
are you using?0.21.2
What version of
astro
are you using?4.3.5
What package manager are you using?
pnpm
What operating system are you using?
Windows
What browser are you using?
Chrome, Edge, FIrefox
Describe the Bug
When the Starlight theme is set to
auto
, changing the browser/system preferences does not change the theme on the currently viewed page.Steps to reproduce:
auto
auto
on the site, change the browser color mode (Browser->Settings) to a value that is different than the currentExpected Result
Page updates to reflect the change in color mode
Actual Result
Page does not respond to the change and requires a navigation or refresh to apply color change.
Link to Minimal Reproducible Example
https://github.com/withastro/starlight/tree/main/docs
Participation
The text was updated successfully, but these errors were encountered: