Change the color of action button in shiny

Sam Kingston picture Sam Kingston · Nov 10, 2015 · Viewed 35k times · Source

I am trying to change the color of the action button from gray to orange.

actionButton("run","Run Analysis")

(This is in server.R.) Is it possible to change its color?

Answer

Megatron picture Megatron · Mar 8, 2016

Below, I've made your action button look like a submit button (also adding a font-awesome icon):

actionButton("run", "Run Analysis", icon("paper-plane"), 
    style="color: #fff; background-color: #337ab7; border-color: #2e6da4")