StackExchange / StackExchange/Stacks
Add Clear icon to input fields
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 672
- Forks
- 107
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
Context
R&R just implemented the clear icon X and feature inside the input field for our admin table. We should make this a standard practice for all search input fields without predictive search. The feature is also available in the Jobs search input field.
UX interaction notes
Once the user starts typing at least 1 character, the @clear icon is added to the right side of the input field. Selecting the @clear icon would reset any search results (if applicable) to default (nothing) and delete any characters the user had typed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the search input fields in Stacks that do not use predictive search; no specific files or tests are named in the issue. Check the existing clear-icon implementation referenced in the admin table, then verify that typing at least one character shows the icon and selecting it clears the input and resets results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100