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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...