Dashboards & Visualizations

How to change the color of the Info button in dashboard?

smanojkumar
Communicator

Hi Splunkers!

   How to change the color of info button in dashboard.

smanojkumar_0-1698840274223.png

 

<panel id="global_status_op">
<title>Global Compliance</title>
<html>
<style>


</style>
<div class="infobutton" parent="global_status_op" type="collapse" style="display: none">
<p style="font-size:15pt;">
The compliance is calculated as follow:</p>
<p style="font-size:9pt;">
- If compliant, the asset is considered as complinat</p>
<p style="font-size:9pt;">
- If not compliant, the asset is considered as not compliant</p>
</div>
</html>
</panel>


Thanks!

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Which dashboard is this from? Which app is it in? Which version of Splunk are you using?

0 Karma

smanojkumar
Communicator

Hi @ITWhisperer ,

   Thanks for your response!

   Version : 9.0.5

   App - Endpoint Cockpit

   The dashboard is from 

<row>
<panel id="global">
<title>Global Compliance</title>
<html>
<style>

.dashboard-body {
background: #0000FF !important;
}

.dashboard-header h2{
color: #0000FF !important;
}
</style>
<div class="infobutton" parent="global_status_op" type="collapse" style="display: none">
<p style="font-size:15pt;">
The compliance is calculated as follow:</p>
<p style="font-size:9pt;">
- If ENS version AND Agent version complinat</p>
<p style="font-size:9pt;">
- If one among ENS,  compliant</p>
</div>
</html>
</panel>
</row>

Thanks!

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Where is infobutton defined? Do you have a custom CSS associated with the dashboard?

0 Karma

smanojkumar
Communicator

Hi @ITWhisperer ,

   <form stylesheet="dashboard.css,infobutton.css" script="multiselect_functions.js,infobutton.js" version="1.1" theme="dark">

Yes, its CSS.

Thanks!

Manoj Kumar S

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Either update infobutton.css or override the definitions in it. If you need help with that, you will need to provide the source of the infobutton.css file (assuming you have permission to share it, of course).

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...