Email notifications on Android dark mode devices lose contrast in preformatted and quoted text

Priority/Severity: Low

Platform: Thunderbird 12.1 on Android and K-9 Mail

Description: For mobile devices running Android, email notifications received in Thunderbird/K-9 don’t display usable contrast in the message body:

  • Preformatted text appears as white text on a light-grey background.
  • Quoted text ([quote]) also appears as white text on a light-grey background, making it unreadable.

Reproducible steps:

  1. Ensure Android device is running in “Dark Mode”.
  2. Open a Discourse-generated email notification that contains either preformatted text or quoted text in the post body.
  3. View white text on a light-grey highlight background color.

Example Screen Shot:

4 Likes

Bug report updated to also include quoted text and the reference to K-9 Mail (based on Thunderbird).

We’ve made a minor change that I hope will avoid this issue

We were using an attribute selector in CSS for these blockquote/code/pre styles, and email support for them are a bit patchy, so here we’ve switched to a element selector. If you continue to have issues after updating please let us know and we’ll do some more digging!

Presuming that this patch has already landed on Meta, based on the email notification I just received for this topic, the change LGTM! Thanks.

1 Like

It has, thank you for confirming!