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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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