issue in background color change for a widget in Employee center portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 03:34 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 12:47 AM
I have added this code to the CSS field in the widget instance:
div.panel-body {
background-color: lightgoldenrodyellow;
}
And this is the result:
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 01:21 AM - edited 06-21-2024 01:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 01:22 AM - edited 06-21-2024 01:23 AM
Please assist anyone if someone has worked on widget background setting in esc portal. Its bit urgent.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 12:04 PM
I suggest if you cannot find the css file that sets the background color, you can use JavaScript techniques after onload event.