Dashboards & Visualizations

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

smanojkumar
Contributor

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
Contributor

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
Contributor

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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...