We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
當使用者系統主題為暗色系、或強制設定為暗色系時,Chrome 的滾動條依然為亮色主題。 Chrome 版本:100.0.4896.127
The text was updated successfully, but these errors were encountered:
我很意外這個看起來像系統原生的問題,CSS 竟然能改動他。
暫時新增下面這個 CSS 可以讓暗色裝置將捲軸改為黑色。
@media (prefers-color-scheme: dark) { html { color-scheme: dark; } }
我會在下個版本修正這個問題,下面這段 CSS 留給我自己。
如果你會用到 data-scheme="dark" 跟 is-dark 這種覆寫樣式,也可以用下面的 CSS。
data-scheme="dark"
is-dark
html, html[data-scheme="light"], .is-light, html[data-scheme="dark"] .is-inverted { color-scheme: light; } html[data-scheme="light"] .is-inverted, .is-inverted, html[data-scheme="dark"], .is-dark { color-scheme: dark; } @media (prefers-color-scheme: light) { html { color-scheme: light; } } @media (prefers-color-scheme: dark) { html { color-scheme: dark; } }
Sorry, something went wrong.
Fixed #802, color-scheme
30283e2
YamiOdymel
No branches or pull requests
當使用者系統主題為暗色系、或強制設定為暗色系時,Chrome 的滾動條依然為亮色主題。
Chrome 版本:100.0.4896.127
The text was updated successfully, but these errors were encountered: