feat: support icon as textfield prefix/suffix#76
feat: support icon as textfield prefix/suffix#76vsandvold wants to merge 1 commit intofabric-ds:mainfrom
Conversation
|
Let's discuss this in tomorrow's meeting? I think it'd fit perfectly in the combobox discussion. |
|
Please feel free to close this PR is you have decided not to accept the proposed changes. I think you should consider it though, so let me try to explain 😄 When I was working on the If you want to make this change, you could perhaps introduce the new components while deprecating the old But then again, this is just a suggestion. I have currently solved then problem by creating a custom I hope that was useful! |
This PR adds a specialized kind of
Affixcomponent, that renders an icon as prefix/suffix in aTextfield.I'm happy to discuss the interface for this new component. It would also be possible to split out the existing
Affixinto separateLabelAffixandButtonAffixcomponent, possibly making the code a bit clearer. Please let me know if you are open to discuss this idea, or if you prefer to incorporate icons in a different way (if at all).