Skip to content

Commit 1a8d4ef

Browse files
authored
IBX-11039: Fixed font color in email notifications (#1802)
1 parent efc94d5 commit 1a8d4ef

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed
19.3 KB
Loading

src/bundle/Resources/views/themes/admin/ui/mail/base_mail_template.html.twig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@
1919
</head>
2020
{%- endblock template_head -%}
2121
{%- block template_body -%}
22-
<body style="padding: 0; background-color: #ffffff; color: #131c26;">
22+
<body style="padding: 0; background-color: #ffffff; color: #131c26;" class="ibexa-email-body">
23+
<style>
24+
@media (prefers-color-scheme: dark) {
25+
.ibexa-email-body {
26+
background-color: #131c26 !important;
27+
}
28+
29+
.ibexa-email-content {
30+
color: #ffffff !important;
31+
}
32+
}
33+
</style>
34+
2335
<table
2436
align="center"
2537
border="0"

src/bundle/Resources/views/themes/admin/ui/mail/components/row.html.twig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88

99
<tr>
1010
<td style="{{ base_style ~ style|default('') }}" class="ibexa-email-content">
11-
<style>
12-
{# This is needed for iPhone Mail app #}
13-
@media (prefers-color-scheme: dark) {
14-
.ibexa-email-content {
15-
color: #ffffff !important;
16-
}
17-
}
18-
</style>
1911
{{ content|raw }}
2012
</td>
2113
</tr>

0 commit comments

Comments
 (0)