Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to change color of "All knowledge bases" categories number circle color in esc portal

Sriram34
Tera Contributor

How to change color of "All knowledge bases" categories number circle color in esc portal

 

check below screen shot

 

This is the link to it https://instancename.service-now.com/esc?id=kb_view2

 

Sriram34_0-1776700372965.png

 

Sriram34_1-1776700516495.png

 

 

3 REPLIES 3

Huynh Loc
Mega Sage

Hi  ,
The color can be modified directly within the widget “KB Categories - KBv3 (ee307070d7201200a9addd173e24d4da)”. Please update the widget configuration accordingly.

image.png

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.

 

 

You don't actually need to edit the widget. The variable is declared like this:

$sp-sc-category-list-badge-color: $primary !default;

Meaning it uses the value of the primary variable if it is not assigned a value. And OOB it shouldn't be so you can just add it to a stylesheet related to the portal theme.

 

Generally speaking think twice before cloning widgets just for styling it is not worth the effort vs the benefit

hi @lauri457 , @Huynh Loc ,

 

Thanks for the update, requirement got changed as below:

 

 colour inside the oval to be "yellow" and the colour of the number  should be black. And also color of the stars also yellow.

 

Thanks,

Sriram