I have tried to repro this using Apple Mail and on 3 different browsers with gmail, but so far I havenāt been successful. So Iād like to get some more information to see if we can replicate this. Can you tell me:
What email client you use?
If gmail, what browser do you use?
And what version of macOS are you on?
Weāll keep digging into this but hopefully this will help us narrow it down.
Since upgrading to 2.9.0.beta4, one member of our forum has reported that they are experiencing a similar issue with emails sent from the forum. Their PC is set to Dark mode, they are using Microsoft Outlook on Windows 10.
They forwarded one of the emails to their IT manager and the light grey text was black on the IT managerās device.
The setting ādefault dark mode color scheme idā in the forum is set to None. There is only one active theme: Default, the color palette is Light (default), no Custom CSS/HTML.
The behavior seems to only be occurring in Outlook Web App. Has anyone else run into this one? Iām wondering if itās being caused by Discourse or the Outlook app and if thereās anything we can do to resolve.
I can replicate the issue using Web Outlook App on Microsoft Edge (Version 106.0.1370.47 (Official build) (64-bit)), Firefox 106.0.1 (64-bit) and Chrome (Version 106.0.5249.119 (Official Build) (64-bit)) on Windows 10 Enterprise, version 20H2.
Windows 10 Settings > Personalisation > Colours >
Then either:
Choose your colour: Custom.
Choose your default app mode: Dark.
or:
Choose your colour: Dark.
Outlook Web App > Settings > Dark mode: Off.
Seems to be the color properties in this CSS style taken from a new version email (as an example) below?:
Apologies for the delay here, we have reproduced the issue in one specific scenario and merged a fix. If you are a hosted customer, the fix will be in your instance over the next week or so.
The specific scenario for the repro is using the default Outlook Web app running on an OS set to dark mode.
That combination caused some dark mode styles to apply to elements in the email template. That is because Outlook Web will respect @media (prefers-color-scheme:dark) (since OS is in dark mode) even though Outlook Web itself is not in dark mode. This is pretty much a bug with Outlook Web.
Nonetheless, weāve implemented a minimal fix. Hereās the relevant commit in core: