Service Portal Widget - Card Background Colour

Scott37
Kilo Contributor

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;
}

find_real_file.png

6 REPLIES 6

Allen Andreas
Administrator
Administrator

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!

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.

Jim Coyne
Kilo Patron

Short answer, of course, is "yes, it can be done".  Is that an OOB or custom widget?

No the widget was downloaded from community.