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!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...