Dashboards & Visualizations

module SubmitButton color

fresned
Path Finder

Is there a way to control the color of the module SubmitButton? I would like to change the color of the button from the standard green to another color.

Tags (2)

sideview
SplunkTrust
SplunkTrust

Certainly. It's easy once you're familiar with using custom CSS in Splunk.

http://www.splunk.com/base/Documentation/latest/Developer/UseCSS

In your app, place an application.css file at $SPLUNK_HOME/etc/apps/<appname>/appserver/static/application.css

and put this in it. Now you get to do the fun part, which is picking the hex colors. One color for the default button and one for the hover state -- I deliberately picked two greys below.

.splButton-primary,
input.searchButton {
    background-color:#666666
}
.splButton-primary:hover,
input.searchButton:hover {
    background-color:#999999;
}

sideview
SplunkTrust
SplunkTrust

hehe. Yea you have to set hover too or else splunk's default green hover rule will still apply and then users with a history of epilepsy will have to stay away.

0 Karma

bwooden
Splunk Employee
Splunk Employee

Hover 4tw!

0 Karma

bwooden
Splunk Employee
Splunk Employee

You can use CSS to change the SubmitButton color.

.splButton-primary {
    background-color: #FFFFFF;
}

You would place this in application.css or dashboard specific CSS. You may generally use Firebug or a similar tool to discover the classes to manipulate.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...