Employee Center Required Information displaying incorrectly

Jeannette2
Tera Guru

When Mandatory information is missing it shows the relevant fields on the right of the Record Producer/Request Item.  However the field name has a dark gray background which makes it hard to read as displayed below.  I want to change it to white.

 

Any help appreciated

Required Information.JPG

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Jeannette2 You should be able to adjust the background color using the following step.

 

1. Search for the CSS in application navigator. Find CSS with name ec-theme-catalogs. Click to open it.

Screenshot 2024-05-20 at 9.32.25 PM.png

2. 

Screenshot 2024-05-20 at 9.31.37 PM.png

Adjust the background color in class sc-field-error-label

 

Hope this helps.

View solution in original post

9 REPLIES 9

Gangadhar Ravi
Giga Sage
Giga Sage

that is not OOB behavior. Please check if any of your CSS changes causing that issue.

Sandeep Rajput
Tera Patron
Tera Patron

@Jeannette2 You should be able to adjust the background color using the following step.

 

1. Search for the CSS in application navigator. Find CSS with name ec-theme-catalogs. Click to open it.

Screenshot 2024-05-20 at 9.32.25 PM.png

2. 

Screenshot 2024-05-20 at 9.31.37 PM.png

Adjust the background color in class sc-field-error-label

 

Hope this helps.

Thank you Sandeep, but the CSS is exactly the same as yours above.

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Is this suddenly? Or after applying a patch for example? Or some other styling on the theme?

 

I haven't looked into the theme if there is something specific for the required information. So check that first!

 

If not, you can overwrite this behavior using CSS. For example I've used the browser inspector to see which element this concerns:

MarkRoethof_0-1716221398676.png

 

Knowing this, I opened the widget instance displayed on the Employee Center page concerned, and added this CSS:

 

 

button.label.sc-field-error-label.sc-reqd-info-btn.ng-binding {
  background-color: red;
}

 

 

 

Give it a try, by also inspecting the page and see if the same element applies to you or something different and choose the styling you are after. (your image looks a bit different than mine)

 

Perhaps also this older article of mine helps:

- 2020-05-18 - Article - Changing Service Portal widgets look and feel without cloning widgets

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn