In Looker we can use the html:
parameter to style output values. If not careful, then the drill functionality for measures could be overridden. The tag is an example of where this could happen.
Using the following will not work:
<font color="red">{{ linked_value }}</font>
linked_value
renders an <a>
tag, which is specifically styled. So adding a parent element with a different color won’t work. You can use link
instead and render the <a>
tag yourself with custom styling.
Like this:
<a href="{{ link }}" style="color: red;">Some extra text if I want it, {{ value }}</a>
Or like this if you want text that’s not clickable as well:
<span style="color: red;">
Some text that's red but not clickable,
<a href="{{ link }}" style="color: red;">Some red text that's clickable, {{ value }}</a>
</span>