Knowledge Management

is it possible to change the color/background-color of a button in a dashboard?

rrovers
Contributor

 

I found this source somewhere in the community and it works fine:

I  <row>
<panel>
<input type="link" token="refresh" id="color_button1">
<label></label>
<choice value="Yes">Ververs Overzicht</choice>
<change>
<condition value="Yes">
<set token="refresh_delay">1</set>
</condition>
</change>
</input>
</panel>
</row>

 

The colors of the button are grey with a white background. I would like to change this to colors that are more remarkable, for example a green background. I've tried several things but without the desired result.

Is it possible to change the colors of the button?

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Use a hidden (because $STYLES$ is never defined) with some CSS defined in a HTML panel:

  <row depends="$STYLES$">
    <panel>
      <html>
        <style>
          #color_button1 button {
            background-color: green !important;
            color: yellow !important;
          }
        </style>
      </html>
    </panel>
  </row>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Use a hidden (because $STYLES$ is never defined) with some CSS defined in a HTML panel:

  <row depends="$STYLES$">
    <panel>
      <html>
        <style>
          #color_button1 button {
            background-color: green !important;
            color: yellow !important;
          }
        </style>
      </html>
    </panel>
  </row>
Get Updates on the Splunk Community!

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...