Dashboards & Visualizations

How to change the font size of drop-down items/selections

spisiakmi
Contributor

Hi, can anybody help, how to change the font size of drop-down items/selections?

Here is my dropdown:

<input type="dropdown" token="auftrag_tkn" searchWhenChanged="true" id="dropdownAuswahlAuftrag">
<label>Auftrag</label>
<fieldForLabel>Auftrag</fieldForLabel>
<fieldForValue>Auftrag</fieldForValue>
<search>
<query>xxxxx</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
</input>

 

Labels (1)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

Hi @spisiakmi 

You can add some HTML with CSS to a panel in your dashboard like this, note this only works for classic dashboards:

<html>
    <style>
      .splunk-dropdown button, button span, 
.splunk-dropdown span, 
.splunk-dropdown label {
    font-size: 1.1em !important;
}
    </style>

livehybrid_0-1753775200389.png

 

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

Hi @spisiakmi 

You can add some HTML with CSS to a panel in your dashboard like this, note this only works for classic dashboards:

<html>
    <style>
      .splunk-dropdown button, button span, 
.splunk-dropdown span, 
.splunk-dropdown label {
    font-size: 1.1em !important;
}
    </style>

livehybrid_0-1753775200389.png

 

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

spisiakmi
Contributor

livehybrid, wau. Absolut cool. Works fantastic. Thank you very much.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...