# Dashboard ui button hover color

**URL:** https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116
**Category:** Dashboard
**Created:** [7 July 2021 08:05 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116 "2021-07-07T08:05:59Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)
#### Post date: [7 July 2021 08:05 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/1 "2021-07-07T08:05:59Z")

</div>

Hello,

how to access the hover color of standard button? I would like to override it with custom css.

this is how the button looks like. Thanks to @hotNipi I managed to achieve this look.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c8933af50f861c49e1ff8019e75b080b44f7972.png)

now I would like to upgrade hover to similar look, right now it looks like this:  
 ![Unbenannt](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/7/27273874520b8502b812f7a573d9685183f2ccac.png)

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [8 July 2021 00:01 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/2 "2021-07-08T00:01:58Z")

</div>

Perhaps more details and showing your flow might help user involvement.

As well as some clarification... like what do you mean by "hover" color

---

<div class="post-metadata">

### Author: ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)
#### Post date: [9 July 2021 22:39 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/3 "2021-07-09T22:39:06Z")

</div>

hover is when you hover with the mouse over the button.  
atm it is the theme color. there is some css atribute to override, so it would change

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [9 July 2021 22:47 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/4 "2021-07-09T22:47:53Z")

</div>

I have never seen any reaction to a "hovering" of the mouse cursor on the dashboard (short of the browser changing the icon)... I don't think there is any such thing with the dashboard 🤔

---

<div class="post-metadata">

### Author: ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)
#### Post date: [9 July 2021 23:10 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/5 "2021-07-09T23:10:34Z")

</div>

add button and then hover over it... my first button is when the cursor is not on it, and the blue one is hovered

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [9 July 2021 23:41 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/6 "2021-07-09T23:41:56Z")

</div>

I have buttons in my dashboard and none of them react at all when "hovering" with the mouse cursor.

EDIT... Sorry, I added a new button _without_ any colouring... and yes there is a faint 'greying out' (I use dark mode) when hovering.

No idea how to manipulate that to a colour.

---

<div class="post-metadata">

### Author: ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)
#### Post date: [9 July 2021 23:47 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/7 "2021-07-09T23:47:18Z")

</div>

![1n8q5cDqxk](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c993766986478626fadf10e63423f47827a7642c.gif)

see? this is hovering. I would like to change the custom theme color (here green) to anotherone with overriding css. but for this i need the css class

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [10 July 2021 00:02 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/8 "2021-07-10T00:02:06Z")

</div>

I forgot that I had an example theme edit going on my whole dashboard... might have been affecting how I saw the "hover" results.

Anyhow, I found this in that list... might help with what you are looking for in the CSS class

```cpp
.nr-dashboard-theme .nr-dashboard-button .md-button:hover {
    background-color: #88888855;
}

```

YES... commenting that out on my dashboard theme edit, caused a hover (on a default button NOT one that I pre-chose the colour for) to change between blank and system colour (blue in my case)

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [10 July 2021 01:50 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/9 "2021-07-10T01:50:54Z")

</div>

I'm far from sure this is the best way to do it but this will change the background hover colour for all buttons

```auto
[{"id":"36310a4f.be421e","type":"ui_template","z":"6a947c4c.60270c","group":"a6e358b.672ffa8","name":"Button CSS","order":6,"width":0,"height":0,"format":"<style id=\"dashboard-style-override\">\n.nr-dashboard-button .md-button:hover {\nbackground-color: #00ffff !important;\n}\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":153.1999969482422,"y":477.20001220703125,"wires":[[]]},{"id":"a6e358b.672ffa8","type":"ui_group","name":"Demo","tab":"4e528085.a1bfa","order":1,"disp":true,"width":"20","collapse":false},{"id":"4e528085.a1bfa","type":"ui_tab","name":"Demo","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

```

Or this will change it for a specific button (You have to use your button node's id in the css selector)

```auto
[{"id":"44c6a8d6.01ec1","type":"ui_template","z":"6a947c4c.60270c","group":"a6e358b.672ffa8","name":"Button CSS","order":6,"width":0,"height":0,"format":"<style id=\"dashboard-style-override\">\n/*.nr-dashboard-button .md-button:hover {\nbackground-color: #00ffff !important;\n}*/\n[node-id=\"20d45887.d8ef1\"] > button:hover {\n background-color: #ff00ff !important;\n}\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":306.20001220703125,"y":435.20001220703125,"wires":[[]]},{"id":"a6e358b.672ffa8","type":"ui_group","name":"Demo","tab":"4e528085.a1bfa","order":1,"disp":true,"width":"20","collapse":false},{"id":"4e528085.a1bfa","type":"ui_tab","name":"Demo","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [10 July 2021 02:06 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/10 "2021-07-10T02:06:41Z")

</div>

> [@jbudd](#):
>
> Or this will change it for a specific button

Nice, even works for my pre-coloured button.

---

<div class="post-metadata">

### Author: ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)
#### Post date: [26 July 2021 09:59 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/11 "2021-07-26T09:59:58Z")

</div>

> .nr-dashboard-theme .nr-dashboard-button .md-button:hover {  
> background-color: #88888855;  
> }

Thank you, this is what I was looking for!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 August 2021 10:00 UTC](https://discourse.nodered.org/t/dashboard-ui-button-hover-color/48116/12 "2021-08-09T10:00:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
