So i have three attributes in the list, "severity", "probability" and date. I would like to show severity in red when its value is "Severe" and probability red as well when its value is "Likely". Second, i wouldn't like the date to have any color change.
I know i have to use HTML source formatting in conjunction with Arcade for this purpose. How can I do this?
Bonus question: How can i please add a calendar icon next to the date? Please note that the date is in the second line
Current output:

Thank you 🙂
Current Arcade:
/ Condition Color the Attributes
var colorS = IIF($datapoint.severity == "Severe", "#ff0000", '')
var colorP = IIF($datapoint.probability == "Likely", "#ff0000", '')
return {
textColor: colorS,
backgroundColor: '',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
// attributes: {
// attribute1: '',
// attribute2: ''
// }
}
Current HTML source:
<p>
<strong>{field/severity}, {field/probability}</strong><br>
{field/date_and_time}
</p>