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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...