Skip to content
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

Is it possible to add an icon before selected option? Or highlight the option with different colour? #66

Closed
Lilian1331 opened this issue Feb 17, 2019 · 1 comment

Comments

@Lilian1331
Copy link

Is it possible to add an image icon before the selected options? Like this:
image
Or highlight the options with different colours?
Thanks for any help.

@jakezatecky
Copy link
Owner

Extremely late reply (even by my standards), but no this is not possible. The main reason is because this element uses a the native HTML <select> and <option> tags underneath for simplicity and the <option> tag does not really allow complex children. This is related to #38.

It is possible that the component could be retooled to use a more complex combination of tags that mimic the native <select> appearance and thus allow for icons to appear before the text, but that is something I am not actively pursuing (though I would accept a PR that includes such changes).

I am going to close this but leave #38 open for the possibility that more customization on the options will be allowed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants