Change md-switch color of default icon

Thanks.
So the work-around (from Steve-Mcl at https://discourse.nodered.org/t/dashboard-element-css-classes/46447 is to use the node id.
It's perfectly fine except:
Unnecessary repetition of CSS to style each element seperately.
Quite difficult to work out from the node id in the CSS which node in the editor it applies to - node id is (rightfully) largely out of sight.

Alternative 1 - Add a CSS class field to the node properties.
Ideal for me. dceejay dislikes adding another field for each UI node type.

Alternative 2 - Use the node's Name field as a CSS class.
Ugly and confusing.

Alternative 3 - There is no alternative 3?

1 Like

That was exactly the reason I thought it sensible to permit adding class to UI elements.

I considered the same alternatives as you and came to same conclusions.

Hoping Dave will take another look / reconsider.

Am still thinking about it. But now on vacation for a while.

3 Likes

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