- Affected version
- 2.2.13
Sites such as Google and MDN Web Docs style the scrollbar according to the user's light/dark mode preference on said websites via the use of the color-scheme CSS property. XF has it defined if a style is light or dark, but this is not pushed thought to the CSS.
Ie something like this:
Ie something like this:
XML:
:root {
<xf:if is="property('styleType') === 'dark' ">
color-scheme: dark;
// This is stupid, but fixes iframes for ads/embeds being not-transparent.
iframe {
color-scheme: light;
}
<xf:else />
color-scheme: light;
</xf:if>
}
Last edited: