carbon-design-system/carbon

Search component missing mouse action

Aperta

#6301 aperta il 17 giu 2020

 (12 commenti) (0 reazioni) (0 assegnatari)JavaScript (1733 fork)batch import
afrohackscomponent: searchhacktoberfestneeds: community contributionneeds: design contributionproposal: acceptedrole: design :pencil2:type: enhancement 💡

Metriche repository

Star
 (7442 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

image The search component is missing an optional button for search submit. I suggest a validation function as optional, returning true if the text is valid for search. If valid, an icon shows up/enters enabled state that is clickable and fires the search callback. Bonus - Search callback should be also fired by hitting enter in the search field, if text is valid. I think this is a common functionality and should not be implemented in carbon, as it is used on IBM sites and the look and feel should be common for all sites. The clickable icon could be the spyglass which is now on the left, moved to the right.

Guida contributor