Skip to content

A platform for community discussion. Free, open, simple.

FIX: update dark mode emails styles (#16461)

Isaac Janzen5f9c98dfc194
diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb
index ed24cb8ed1b..3f15a570a80 100644
--- a/app/helpers/email_helper.rb
+++ b/app/helpers/email_helper.rb
@@ -58,7 +58,8 @@ module EmailHelper
h5,
h6,
p,
- span {
+ span,
+ td {
color: #dddddd !important;
}
diff --git a/lib/email/styles.rb b/lib/email/styles.rb
index 02e347576c0..85d1703d681 100644
--- a/lib/email/styles.rb
+++ b/lib/email/styles.rb
@@ -342,6 +342,8 @@ module Email
style(".digest-content, .header-popular-posts, .spacer, .popular-post-spacer, .popular-post-meta, .digest-new-header, .digest-new-topic, .body", nil, dm: "body")
style(".with-accent-colors, .digest-content-header", nil, dm: "body_primary")
style(".summary-footer", nil, dm: "text-color")
+ style(".digest-topic-body", "border-bottom: 1px solid #454545 !important;")
+ style('div.secure-media-notice', 'border: 5px solid #454545 !important;')
end
def replace_relative_urls