fix: code duplication between text-field and search components
olaf-k opened this issue ยท 1 comments
olaf-k commented
๐ 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 ๐