New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to use custom icon for search #331
Comments
I was also trying to customize the search icon, and solved it by setting the
Hope this helps. |
Hi @tcy1999, Could you give me an example of color changing using variable based on your sample code block? I was able to change the color by adding name of the color like "red", "lime", but not with hex color code or variable. |
To change the color dynamically using a variable or a hex color code, you need to utilize URL encoding for the color within the SVG's fill attribute. This ensures that special characters like "#" are properly represented in URLs and code. For example, if you want to change the fill color of the SVG icon to a specific hex color code, such as "#FF5733", you would need to URL-encode it as follows:
Use the %23 instead of # |
Description
There should be a way to use custom icon for the search bar instead of the default icon provided.
I am trying to change the color and size of the icon but that is not possible as of now and in the rendered DOM I cannot see the icon. Is there a way to customize the default icon?
The text was updated successfully, but these errors were encountered: