fast icon indicating copy to clipboard operation
fast copied to clipboard

fix: code duplication between text-field and search components

Open olaf-k opened this issue 1 year ago • 0 comments

🐛 Bug Report

Not that much of a bug really but I noticed the search text input had a dedicated search component in fast-foundation, while other variants of the input (default text, tel, password and so on) were handled in text-field. A large part of the functional code seem duplicated as a result.

🤔 Expected Behavior

I would expect the text-field to provide a search variant so as to keep the code consistent in one place. I understand this would be a breaking change (the search component would have to be deprecated) and I may have overlooked a significant difference that actually justifies having two separate entities, yell at me if that's the case 😁

olaf-k avatar Nov 29 '23 15:11 olaf-k