Service Portal Widget - Card Background Colour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 07:01 AM
I would like to change the background colour of the card tiles on my widget but instead of changing all the colours i would like the colours to be specific to that category. Similar to the way an homepage icon would show.
I added the following to the instance CSS to make them yellow. Is there a way to point the colour to a refrence on the item.category?
.panel-body.block{
background-color: yellow;
}
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 07:51 AM
Hi,
Easiest thing would be to go to "Widget Instances" (search this in back-end) and then alter the css for each one there. Otherwise I think you'd over complicate it as you'd have to clone the icon widget anyways, build a map and set all the css, custom options so that you could set it in others that you "instance" from it.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 08:13 AM
Thanks Allen, But the CSS i have added is to the Widget Instance. This widget is controlling the category navigation and doesnt have an instance for each tile. My idea would be to add a coulour reference field to the Maintain Category record and use the code to point to that colour so that it dynamically updates the background.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 08:24 AM
Short answer, of course, is "yes, it can be done". Is that an OOB or custom widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2018 08:30 AM
No the widget was downloaded from community.