Add styling to AI search results page (faceted search widget)

Tapish Sharma1
Kilo Sage

Hi All, 
I am trying to add styling to the AI search page (faceted search widget). 
I want to add margin-bottom  to the results that get displayed. 

TapishSharma1_0-1731058758025.png

What I notice is there is nested shadow root. And I am unable to reach the li class to add styling to it.

TapishSharma1_1-1731058847717.png

Any thoughts on how to reach this class and styling to it ? Has anyone come across this ? Any inputs will be helpful. Thanks. 

 

1 REPLY 1

Isaac Vicentini
Mega Sage
Mega Sage

Hi @Tapish Sharma1!

 

The AI Search widget is an internal ServiceNow directive that doesn’t accept customizations made directly on the page.

 

If you want to style this page, you can refer to the following documentation with all styling options:

➜ Theming for AI Search in Service Portal 

 

These variables should be applied to the Portal theme.


If my answer helped you in any way, please mark it as Helpful / Accept as Solution 🎯

Regards,

Isaac Vicentini.

 




Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.