Service Portal - sn-search-combobox (AI SEARCH search bar) - custom styling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2022 02:46 PM - edited 11-02-2022 02:48 PM
Hello all, hope you are having a great day!
My question is very simple, is it possible to apply custom styles to the search input used with AI Search in ServicePortal? (the search input generated by directive sn-search-combobox)
I tried adding the css into the parent widget & theme, but none of those did apply the styles to the search input.
Upon further investigation, the search input is rendered inside shadowRoot, so global styles probably won't work here.
Is there a workaround how to apply styles to the search input please ?
Is it even possible to modify lets say the border color or border radius on the sn-search-combobox search input?
Thanks a lot for any hints & tips!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 02:19 AM
Struggling with this as well. Found anything? It has to do with the shadow-dom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 01:16 PM
Theming for AI Search in Service Portal
Create a CSS include to override theming for AI Search in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2022 08:44 AM
Hi, this is very limited regarding styling, especially as we need to modify it to our custom portal's homepage. I have found some styling guides for shadow dom, but as it's multiple nested components, it seems it's not possible to style using ::part etc...
Is there some way how to access the component and modify it as needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2022 10:51 PM
I have not met many problems with you. I need to change the border of the input box into rounded corners. Have you found the solution?