if I change the color of the header in esc portal the sidebar color should change according to it is

kiran kumar m1
Tera Contributor

I have created a sidebar widget in ESC portal, I want to make it dynamic if I change the color of the header in esc portal the sidebar color should change according to it is there any way to do that ?

1 REPLY 1

Nick Parsons
Mega Sage

Yes, you can use the same SCSS variable used in the header to control the background. In Employee Center, that's $navbar-inverse-bg. So in your sidebar widget, set the colour like so when setting the background color:

background-color: $navbar-inverse-bg;

 When you change the colour value for this variable in the EC Theme it will change the colour for both the header and your sidebar widget.