question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong `preferred_color_scheme` color scheme

See original GitHub issue

After 664af3446ce13740130c9d62ab97fdccf5584a16, the preferred_color_scheme looks incorrect:

screenshot

It seems that this is caused by https://github.com/giscus/giscus/blob/664af3446ce13740130c9d62ab97fdccf5584a16/client.ts#L118

My browser version is Mozilla Firefox 106.0.5.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
laymonagecommented, Nov 12, 2022

Did #785 fix it for you?

0reactions
willyywtcommented, Nov 12, 2022

MDN - color-scheme normal: Use browser default. Not necesarily related to @media (prefers-color-scheme) ! This is idential to light in most browser settings light: Use light theme dark: Use dark theme light dark: Use either of light or dark theme. The correct way to transparently pick up @media (prefers-color-scheme) only light: Disable “Auto Dark Theme” (Currently introduced in Chrome on Android, see Chrome Developers)

Read more comments on GitHub >

github_iconTop Results From Across the Web

preferredColorScheme(_:) | Apple Developer Documentation
Use one of the values in ColorScheme with this modifier to set a preferred color scheme for the nearest enclosing presentation, like a...
Read more >
How to implement a color scheme switch with the system ...
To accomplish this, you will need to store the user's display preference from a Bool to a custom enum. Then, from this custom...
Read more >
prefers-color-scheme - CSS: Cascading Style Sheets | MDN
The prefers-color-scheme CSS media feature is used to detect if a user has requested light or dark color themes.
Read more >
Reading and setting color scheme in SwiftUI - Nil Coalescing
Users can set a preferred color scheme to light or dark on their devices and when our apps use standard system colors in...
Read more >
prefers-color-scheme: Hello darkness, my old friend - web.dev
The prefers-color-scheme media feature is used to detect if the user ... the right CSS and therefore avoid a flash of incorrect color...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found