StackExchange / StackExchange/Stacks

Add Clear icon to input fields

Open
#673 0 comments 1 reaction 0 assignees View on GitHub

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.

Screen Shot 2021-05-31 at 11 27 47 AM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.