Change color of search-widget icon

12-30-2022 06:13 AM
Occasional Contributor

Is there a way to change the search-widget search-icon-color and background color?

By default the search-widget takes the color from the design-theme. Changing the design will update the background color of the widget. I have a usecase where the search-icon-background should be white and the magnifier icon black.

Challenge 1: Only that specific search-icon background color, not every other widget in the experience which uses the "primary-theme-color"...

Challenge 2: the theme changes only the background of the search-widget-icon. The color of the magnifier is not affectet and stays always white, making it disappear if the background-color is white too...

Any ideas?

2022-12-30 14_49_26-ArcGIS Experience Builder.png

- Andi

2 Replies
Occasional Contributor III

Please support the idea about this issue that I posted here:

Adding a comment about why this is important for your organization and how many people it effects would further help push this along.

0 Kudos
Occasional Contributor

I'll support the idea asap.

In the meantime, the workaround: After downloading the app, manipulate the widget.js file by adding the color and background-color to the .search-button.



.search-button {
	width: ${n.polished.rem(32)};
	border-radius: 0;
	color: #4678B4;
	background-color: white;