- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 10:08 PM
Hi,
Can anyone help me like how we can change the filter navigator background color and font colors in Polaris view. Thank You!
Regards,
Ganesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 04:53 PM
@Community Alums
There sure is. The following property governs what the 'application menus and modules' colour will be when you are searching: "--now-color--neutral-4": "0,0,0"
I added your theme to my instance, along with the property above, and this is the result. Was this what you were looking for? If so, give it a thumbs up to help others find it 😁
Regards
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2023 10:09 PM
@Community Alums : Please help me on this if you have idea. Thank you in advance.
Regards,
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 08:16 PM - edited 03-15-2023 08:18 PM
@Community Alums i hope you are asking about displaying matching filter result text, i had same question when I had to create a light theme ,but unfortunately Servicenow uses neutral color as filter background so if you change this will impact on classic UI section of form.
I even had a hi case last time and they said there is nothing till Tokyo from their side in this.
So nothing we have as of now to change this because this is not link with any specific property for themeing.
Hope this will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 08:42 PM - edited 03-15-2023 08:42 PM
"So nothing we have as of now to change this because this is not link with any specific property for themeing."
We are running a highly customised theme in Tokyo. My post from earlier shows some of the properties in themes available to us. Tokyo is indeed out and available to the public. I can appreciate not all organisations are already upgraded to it.
There does indeed appear to be all the settings Ganesh will need to accomplish what he's wanting; filter navigator background colour, font colour manipulation etc.
I hadn't tried this in San Diego, so I can't speak to the theming there.
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2023 06:52 PM - edited 03-15-2023 08:34 PM
Hi Ganesh
I'm in the process of creating a new theme and am working on that exact question.
There are a few properties that manage the colours.
- If you haven't already, create a new theme (Next Experience UI - Understanding Themes)
- If you already have your theme created and want to modify the navigator background. Navigate to the 'sys_ux_style' table and open your theme.
The properties I've found so far that govern the colours in question are:
"properties": {
"--now-unified-nav_menu-filter--background-color": "195,67,153",
"--now-unified-nav_menu-filter--background-color--hover": "0,0,0",
"--now-unified-nav_menu-filter--background-color--opened": "195,67,153",
"--now-unified-nav_menu-filter--color--placeholder--focus": "255,255,255",
"--now-unified-nav_menu-filter--color--opened": "255,255,255",
}
I modified the colours for exaggeration to illustrate. I don't have my background colour pink normally 😅
In particular, the ""--now-unified-nav_menu-filter--color--opened": "255,255,255"," property sets the colour of the text in the menu filter.
The link I shared earlier shows how to modify fonts.
Hope this helps 👍
Regards
James