mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:04:11 +08:00
29a32f9566
Meta topic: https://meta.discourse.org/t/meta-theme-color-is-not-respecting-current-color-scheme/239815 Currently, the dark mode theme-color `<meta>` tag doesn't apply because the light mode tag has `media="all"`. This means that the dark mode `<meta>` tag with `media="(prefers-color-scheme: dark)"` won't override it. This PR updates the light mode tag to `media="(prefers-color-scheme: light)"` if `dark_scheme_id` is defined and leaves it as `media="all"` otherwise. |
||
---|---|---|
.. | ||
application_helper_spec.rb | ||
redis_snapshot_helper.rb | ||
topics_helper_spec.rb | ||
user_notifications_helper_spec.rb |