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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...