ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

[ionic 2 enhancement] ion-searchbar: dynamically set colors for icons

Open szerner opened this issue 10 years ago • 3 comments

I would appreciate the possibility to set the colors of the <ion-searchbar> component icons on the fly.

Currently we can use some ionic Sass variables to define the colors for some of them (clear-icon and search-icon, but not for the cancel-button icon) at build time, but we cannot set the colors at runtime.

This might be necessary in cases when the user should be able to choose a "color theme" for his app.

Thank you!

szerner avatar Aug 22 '16 15:08 szerner

@jgw96 could you please point me to right direction how to change search icon and clear button colors with CSS? thanks a lot ! keep up the good job!

okonon avatar Nov 08 '16 22:11 okonon

Hello! Thanks for opening an issue with us! As this seems like more of a support question I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!

jgw96 avatar Jun 05 '17 16:06 jgw96

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 02 '18 19:09 ionitron-bot[bot]