Dark Mode - Text is blended in with black background

bbarrera
Tera Contributor

I am having users who are unable to view the text in the body of the email when using Dark Mode. The text blends in with the black background. It seems to be occurring when an inbound email comes in from an external email. Also the header (to and from and cc) is blending in.

5 REPLIES 5

-O-
Kilo Patron
Kilo Patron
unable to view

where?

I bet you wrote on your CV that you are a great communicator.

bbarrera
Tera Contributor

bbarrera_0-1701705013273.png

The body of the text as you can see is not visible (exception of words I highlighted). 

 

So it's the Activities formatter in Core UI Form.

I don't think there is an easy fix for that.

My hunch is that the e-mail contains in-line styling - which only sets the color and not the background color.

If that is the case, the only thing one might do about it is to create a HTML sanitizer that kicked in on insert into sys_email.

There is a utility/library I have used before which could be used to help fix this: HTMLParser.

It parses HTML and feeds the nodes, attributes to a callback function you define, which can re-build the original HTML from it, but essentially striping style and font nodes and bgcolor and color attributes.

So that then the global color and background-color styles would be applied to the e-mail body.

Thrishulkd
Tera Contributor
 

I have code pasted the text from google. when I did I got the option to keep the format I clicked yes as I wanted to keep the format and text was in white background with black font. I copy pasted in my servicenow RTE which is in the dark mode. Now format is working but it remain the whitebackground which I dont want. please help