issue in background color change for a widget in Employee center portal

Ct111
Tera Sage

Hello community members,

 

We have this My approvals widget on employee center where we are trying to apply the background color but it is not working at all

 

1. Tried this community post solution but it doesnt work for ESC(Employee Center portal):

Solved: want to change the background color of widgets in ... - ServiceNow Community

 

2. Tried inspecting on the class of the widget and applied the CSS on page level as well still it doesn't work

 

Is there any way to fix this ? If yes Please suggest . Thanks.

 

I suspect portal level theme is blocking it, but I could be wrong please share your views or solution if you have encountered something similar.

8 REPLIES 8

I have added this code to the CSS field in the widget instance:

div.panel-body {
    background-color: lightgoldenrodyellow;
}

 

And this is the result:

 

SlavaSavitsky_0-1718956011735.png

 

 

Ct111
Tera Sage

Div panel wil start impacting other places as well . It is not only taking that widget.

 

But everywhere you use , it will go and change color.

 

And also if you note here , you are not able to update top background color where My Approvals are written in widget.

Ct111
Tera Sage

Please assist anyone if someone has worked on widget background setting in esc portal. Its bit urgent.

 

Thanks

BillMartin
Mega Sage

I suggest if you cannot find the css file that sets the background color, you can use JavaScript techniques after onload event.