How can we change the portal ticket menu badge count color?

Shantharao
Kilo Sage

Hi,

I want to change the badge count of My Tickets menu as mentioned below screenshot

find_real_file.png

can anyone help me where can we add the CSS along with suitable CSS code.

Thanks

 

 

7 REPLIES 7

Pratiksha Kalam
Kilo Sage

Hello,

Go to your widget and in the Css variables, add the below style, it should work

.label-primary

{

background-color:blue; //please change according to your requirement

}

https://community.servicenow.com/community?id=community_question&sys_id=e68dd653db6ca3c08e7c2926ca96...

 

If answer is helpful please mark correct!

Thanks,

Pratiksha

Hi Pratiksha,

My requirement is as below, I am doing service portal simulator, without using .label I have to achieve this with separate class name as highlighted in the yellow color

5. Locate the required class for making the change to the My Tickets badge count, and apply these changes at the very end of the simulator.css CSS Include:

IMPORTANT: The style should apply to only that badge (e.g. not using .label as the class) and you're only allowed to use one class name to achieve this.

Jaspal Singh
Mega Patron
Mega Patron

Hi Shantharao,

 

Look for Service Portal >> Portals from Application navigator.

Open required portal & then add CSS to the Portal's CSS field as below.

.label-primary {
background-color: #ffffff;

}

This would avoid clone of widget that is used in header menu to be done.

snehalkhare
Kilo Guru

Were you able to achieve this requirement ?

 

Regards,

Snehal