<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Table cell font colour (color) changing depending on cell background colour in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554914#M38584</link>
    <description>&lt;P&gt;Yes, that's what I showed as I thought you may have forgotten it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 13:57:10 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-08T13:57:10Z</dc:date>
    <item>
      <title>Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554855#M38571</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a stats table which I have set up to use as an alarm display where each line is coloured to donate the severity.&lt;/P&gt;&lt;P&gt;This is working fine except that when the table row colour is red or blue the text in the cells is white which my users don't like they want the text to stay black for all background colours.&lt;/P&gt;&lt;P&gt;This seems to be a default behaviour, I have looked round the documentation and asked my friend google but cant fins a way to suppress it.&lt;/P&gt;&lt;P&gt;Can anyone point me towards a solution.&lt;/P&gt;&lt;P&gt;Cheers Mike&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554855#M38571</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554857#M38572</link>
      <description>&lt;P&gt;Example of font colour attached&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image showing change in font colour" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14530iEC5871A2BED600AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="cellFontColour.png.jpg" alt="Image showing change in font colour" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Image showing change in font colour&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554857#M38572</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554863#M38573</link>
      <description>&lt;P&gt;Have you tried using CSS to set the colour to black for the table data cells?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554863#M38573</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-08T09:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554865#M38575</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Yes I have tried that, the colour seems to change as the colour saturation increases&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554865#M38575</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554904#M38578</link>
      <description>&lt;P&gt;Can you share your SimpleXML for this? Do you have the CSS in the SimpleXML or separately in a .css file?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554904#M38578</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-08T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554906#M38580</link>
      <description>&lt;P&gt;This is an example dashboard showing the issue&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Text Colour&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Colour vs text&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval whiteBg="White Background", redBg="Red Background" | table whiteBg redBg&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="redBg"&amp;gt;
          &amp;lt;colorPalette type="map"&amp;gt;{"Red Background":#FF0000}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the whiteBG has black text and the redBG has white text, I have raised a case on this as well&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554906#M38580</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554907#M38581</link>
      <description>&lt;P&gt;On my live dashboard the css is in the simplexml&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554907#M38581</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554911#M38582</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Text Colour&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #table td {
            color: black !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="table"&amp;gt;
        &amp;lt;title&amp;gt;Colour vs text&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval whiteBg="White Background", redBg="Red Background" | table whiteBg redBg&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="redBg"&amp;gt;
          &amp;lt;colorPalette type="map"&amp;gt;{"Red Background":#FF0000}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1623160005105.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14536iBD431D59A92AD94C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1623160005105.png" alt="ITWhisperer_0-1623160005105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554911#M38582</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-08T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554913#M38583</link>
      <description>&lt;P&gt;I think I have foungd it you need the !important after the color: black&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554913#M38583</guid>
      <dc:creator>mscomms</dc:creator>
      <dc:date>2021-06-08T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table cell font colour (color) changing depending on cell background colour</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554914#M38584</link>
      <description>&lt;P&gt;Yes, that's what I showed as I thought you may have forgotten it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Table-cell-font-colour-color-changing-depending-on-cell/m-p/554914#M38584</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-08T13:57:10Z</dc:date>
    </item>
  </channel>
</rss>

