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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...