# Button problem - when I press a button the colour

**URL:** https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737
**Category:** Dashboard
**Created:** [22 July 2018 03:29 UTC](https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737 "2018-07-22T03:29:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [22 July 2018 03:29 UTC](https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737/1 "2018-07-22T03:29:31Z")

</div>

I am using the working dashboard, but there is a problem which is becoming annoying with the buttons.

When I press them, they stay white in colour.

See attached.

Is there something I should be doing to stop this happening?

Other buttons - which are not the STANDARD buttons - but JS in function blocks - work fine.  
Just the standard buttons.

 ![Screenshot%20from%202018-07-22%2013-28-12](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/94e0b2512a347e569286b827ca86dd49eacf5dab.png)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [22 July 2018 09:59 UTC](https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737/2 "2018-07-22T09:59:11Z")

</div>

Debugging 101

1. copy the troublesome flow to a new tab
2. remove all the nodes that are not envolved in the issue
3. if data is needed to reproduct the problem, use an injection node or injection/change nodes to build the data - this way someone without the database/file/sensor you are using wil still be able to import and run the flow and see the error
4. export your flow
5. restart NR and capture the start up log.
6. provide tthe startup log
7. provide the flow

While this seems like a lot, I'm sure you want to make it as easy as possible for people to help you AND many times the act of doing it (reducing it to the smallest example that shows the issue, will actually allow you to solve it yourself). Doing all this for _each_ problem you have, will save the valuable time of people you are hoping will help you and give them a better understanding of your environment, the nodes you are using, your logic and the issue you are having.

Thanks in advance for making it easier for all of us to help you.

---

<div class="post-metadata">

### Author: ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)
#### Post date: [22 July 2018 13:44 UTC](https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737/3 "2018-07-22T13:44:04Z")

</div>

I'm not sure but seems to be the pre-defined behaviour when button is selected after press, as the mouse is still on it, I had also the same with the default buttons when not specifying any specific colour.

Try to define a specific color & background on the button configuration and check if this issue is gone.

Don't ask me why.....

Regards

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [23 July 2018 23:30 UTC](https://discourse.nodered.org/t/button-problem-when-i-press-a-button-the-colour/1737/4 "2018-07-23T23:30:17Z")

</div>

David,

Thanks.

That seemed to fix the problem as I was seeing it.
