Dashboards & Visualizations

How can I change input label color?

manderson7
Contributor

I know I can change the color of a .panel-title, but I haven't found the code to change the .input-label color.

This works:

 

 

 

   <panel id="panel2">
      <title>title</title>
      <input type="text" token="commentpicker">
        <label>Add any additional comments below</label>
        <default></default>
      </input>
      <html>
        <style>
          #panel2 .dashboard-panel .panel-title {
            color:     #EC102B;
          }    
        </style>

 

 

 

But this won't

 

 

 

    <input type="multiselect" token="newenabledpicker" searchWhenChanged="false" id="input1">
      <label>Modify or Disable (REQUIRED)?</label>
      <choice value="modify">Modify</choice>
      <choice value="disable">Disable</choice>
      <delimiter> </delimiter>
    </input>
    <html>
        <style>
          #input1 .dashboard-panel .input-label {
            color:     #EC102B;
          }    
        </style>
      </html>

 

 

 

Labels (1)
Tags (2)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@manderson7 

Can you please try this?

<style>
          #input1 label {
            color:     #EC102B;
          }    
        </style>

 

Screenshot 2022-10-05 at 11.37.29 PM.png

 

I hope this will help you.

 Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.

 

View solution in original post

Tags (1)

kamlesh_vaghela
SplunkTrust
SplunkTrust

@manderson7 

Can you please try this?

<style>
          #input1 label {
            color:     #EC102B;
          }    
        </style>

 

Screenshot 2022-10-05 at 11.37.29 PM.png

 

I hope this will help you.

 Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.

 

Tags (1)

manderson7
Contributor

That did the trick. Thank you.

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

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