# \`button\` node not accepting what I am sending it

**URL:** https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112
**Category:** Dashboard
**Created:** [12 October 2021 00:20 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112 "2021-10-12T00:20:20Z")
**Posts on this page:** 7
**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: [12 October 2021 00:20 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/1 "2021-10-12T00:20:20Z")

</div>

This is a message being sent to a `button` node.

```auto
{"payload":"STOP","topic":"CONTROL","event":{"clientX":391,"clientY":378,"bbox":[370,413,418,365]},"socketid":"rfHbrvuF4P47dlPcAAAG","_msgid":"bf9ab39.1603f5","colour":"green","txt":"XXX","fontclr":"black"}

```

note the part: `"fondclr":"black"`

This is the node:

```auto
[{"id":"86379535.4daef","type":"ui_button","z":"1c428643.6f708a","name":"Flow error Logging","group":"a044b2e1.8758a","order":1,"width":"1","height":"1","passthru":false,"label":"{{msg.txt}}","tooltip":"","color":"{{msg.fontclr}}","bgcolor":"{{msg.colour}}","icon":"","payload":"X","payloadType":"str","topic":"blah","x":880,"y":3470,"wires":[["abe54b8c.35f8e8","1830c78b.5a8468"]]},{"id":"a044b2e1.8758a","type":"ui_group","name":"Flow errors","tab":"a1877b46.0cc8c","order":8,"disp":true,"width":"6","collapse":false},{"id":"a1877b46.0cc8c","type":"ui_tab","name":"Logging","icon":"list","order":3,"disabled":false,"hidden":false}]

```

I have the `dashboard` set to `use angular theme in ui_template` but the text is always white.

Where's the elephant?

---

<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: [12 October 2021 01:27 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/2 "2021-10-12T01:27:19Z")

</div>

I get black XXX on green background.  
You aren't overriding it with CSS in a template, maybe on a different tab but with type "  
`Added to site <head> section` ?

Grrr very annoying to have my `<head>` severed!

---

<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: [12 October 2021 01:28 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/3 "2021-10-12T01:28:31Z")

</div>

Probably.

I tried it on another machine (just now) and it works.

ARGH!

I guess the question is now how do I allow the font colour to be controlled?  
Where in the CSS stuff would I need to look?

---

<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: [12 October 2021 01:32 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/4 "2021-10-12T01:32:57Z")

</div>

Good question. Maybe search flows for .md-button

---

<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: [12 October 2021 01:34 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/5 "2021-10-12T01:34:18Z")

</div>

I seem to be good at digging myself into these _Problems_.

Searching soon.

Shall have to try your second option.

no `md.button` found in the flows.

---

<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: [12 October 2021 01:34 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/6 "2021-10-12T01:34:38Z")

</div>

Or disable other flows one by one and see if it goes away.

Note: ".md-button" != "md.button"

---

<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: [11 November 2021 01:34 UTC](https://discourse.nodered.org/t/button-node-not-accepting-what-i-am-sending-it/52112/7 "2021-11-11T01:34:39Z")

</div>

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