Nr dashboard - switch node - change background color

How can I change the background color of a switch node?
I managed to change the background color of a button node but this method does not work with a switch node.
Any help appreciated

I don´t think you can target a specific ui_switch if there are several of them in the dashboard. If it is ok for you to change the background of all existing switches then it is possible by targetting the .nr-dashboard-switch class.

1 Like

Multiple shouldn't be a problem if you know the order of the elements. You can target a specific one with the :nth-of-type() selector: https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type

many thanks!
As I have only 10+ switches on my mobile phone in one flow your tipp made it and it looks much clearer!

1 Like

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