I’m currently working on a web project and I changed the Bootstrap’s primary button color to orange. Now almost all button states work fine: active state, hover state, etc – except the loading state.
Once it enters the loading state, it returns to its default color which is blue.
I was searching on how to do it but seems I can’t seem to find it. Can anyone help me out with this or if this question already exists, please redirect me to it. Preferably, I’d like to do it without javascript. Thanks!
4
Answers
This one rather can’t be done without using JavaScript.
First way, if you aren’t afraid of JS: jsfiddle
HTML:
CSS:
JS:
Second way (less js, more css, using !important): jsfiddle
You can use Inline CSS
Did you try using bootstrap’s customize
I think they have an option for changing the color of primary button. Look for btn-primary-color
If you don’t want to use
javascript
than you can try this..Hope this helps…