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
[TextField] added left/right icon #2932 #4027
Conversation
This component already has enough performance issues re-rendering because of the sheer amount of stuff going on -- do you think this is a good idea to add at this time? |
@skarnecki Thanks for this PR but I agree with @nathanmarks I don't think that we should add a I guess you try to achieve something like that: That could but also useful for a |
@oliviertassinari I think that's a great idea for the multiple use cases 👍 |
@oliviertassinari If there is a way to achive similar look without modifying textfield I'm please tell me. |
@skarnecki You could add padding and use a pseudo element to render a material icon. I'm closing this for now as we won't be adding more features to the current |
@nathanmarks I tried with a pseudo element like that (Reagent) (defn search []
[:div
[icons/action-search]
[rui/text-field {:hint-text "Enter search text" :full-width true}]]) But the problem then is that both aren't on the same line and even with inline styles, I can't change that. Any suggestions? |
Fix #2932.