Dashboard widgets eg switches can defined as Class "STEAM" in the editor.
Now groups of widgets can be styled alike across dashboard tabs and groups
The CSS path is
... md-card.nr-dashboard-switch.[blah].STEAM.visible
If you pass msg.className "GREEN" to a widget it's CSS path becomes
... md-card.nr-dashboard-switch [blah].GREEN.visible
(GREEN replaces STEAM)
Would it be better to append msg.className? Giving
... md-card.nr-dashboard-switch[blah].STEAM.GREEN.visible
Now all the STEAM widgets can retain STEAM styling (background colour?) and also show GREEN (border green?)
With this modification a null msg.className would have to remove .GREEN but retain .STEAM