Search field pattern #605
-
Would like to use the same search field pattern as what we will launch for console nav, if that's appropriate. One thing that is missing is the quick ability to clear the search field to reset the search. Using the component that we have, we will need to create a text link or icon outside of the input field to clear that input field. What about a pattern where the X icon shows up inside the input field? Ultimately, whatever we create for search, will it be a pattern that we can use, as I am creating search for transcriptions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hey @elainelylee - so sorry for the delay on this one! Chatting with the team now, we'll get back to you soon. |
Beta Was this translation helpful? Give feedback.
-
I'm not saying this is the right answer, but right now we currently support the native HTML search input type which has a similar behaviour. I just can't guarantee what that looks like across all browsers. Sandbox for example: |
Beta Was this translation helpful? Give feedback.
-
@elainelylee Simon created a few other options for you to add the 'clear' functionality to your search field in this code sandbox. If you need to get this out soon, you can go with one of those options for now. I'm partial to #3 personally - feels cleanest. We have also added this functionality to our backlog to systemize this 'clear' functionality, so we can keep you in the loop on that when we get there. What's your timeline for this? |
Beta Was this translation helpful? Give feedback.
@elainelylee Simon created a few other options for you to add the 'clear' functionality to your search field in this code sandbox.
If you need to get this out soon, you can go with one of those options for now. I'm partial to #3 personally - feels cleanest. We have also added this functionality to our backlog to systemize this 'clear' functionality, so we can keep you in the loop on that when we get there. What's your timeline for this?