TKOaly / baseball-bat

Debt Management Service
https://bbat.tko-aly.fi
2 stars 1 forks source link

Explicitly specify MJML bg AND font colors #1

Open ConcernedHobbit opened 1 year ago

ConcernedHobbit commented 1 year ago

Currently the mail template shows wrong on iOS mail as text color is not explicitly specified but assumed to be black (it is white when in iOS night mode)

image

meklu commented 1 year ago

According to the mjml documentation, the default text color for <mj-text> elements is explicitly set to #000000. The live editor on there seems to confirm this: <mj-text>foo</mj-text> turns into the following HTML: <div style="/* editorial snip */ color:#000000;">foo</div>

It would be cool if you could provide an anonymized version of the actual generated HTML source of the message. It may be that Apple does something very destructive when it encounters explicitly black text which should make this their problem. If that proves to be the case, this could possibly still be worked around by setting the text color to something stupid, like #020202 for instance.

ConcernedHobbit commented 1 year ago

seems to be fixed in iOS 16.4