market icon indicating copy to clipboard operation
market copied to clipboard

Highlights and clear button on edit UI

Open EnzoVezzaro opened this issue 2 years ago • 2 comments

  • Fixes #1244 .

Changes proposed in this PR:

  • border outline when an input has changes
  • added "search" type on text inputs for clear button support

Current (no feedback):

Screenshot 2022-09-08 at 08 30 31

PR changes:

No change: Screenshot 2022-09-08 at 08 32 05

With change: Screenshot 2022-09-08 at 08 33 18

The clear "X" button shows up on hover.

WIP:

  • [ ] add clear support to other input types
  • [ ] testing outline in edit form

EnzoVezzaro avatar Sep 08 '22 12:09 EnzoVezzaro

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
market ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 6, 2023 at 0:33AM (UTC)

vercel[bot] avatar Sep 08 '22 12:09 vercel[bot]

Code Climate has analyzed commit 4262837b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 0.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 3.9% (0.0% change).

View more on Code Climate.

codeclimate[bot] avatar Oct 19 '22 12:10 codeclimate[bot]

what is the status of this ? the pr mentioned as required was merged.

mihaisc avatar Jan 18 '23 10:01 mihaisc

ready for review @jamiehewitt15 @bogdanfazakas

EnzoVezzaro avatar Jan 20 '23 11:01 EnzoVezzaro

Code Climate has analyzed commit ae1dab88 and detected 7 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 6

The test coverage on the diff in this pull request is 0.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 22.4% (0.0% change).

View more on Code Climate.

codeclimate[bot] avatar Feb 06 '23 12:02 codeclimate[bot]

I don't understand why the border colour changes to red? To me it looks like I have entered some invalid input. I feel like green would be a better choice?

jamiehewitt15 avatar Feb 09 '23 09:02 jamiehewitt15

added "search" type on text inputs for clear button support

This will only work in webkit & blink. And it's semantically completely wrong. You also used a -webkit- prefix where there should be no prefix usage at all. If you want a clear button in all browsers you actually have to build it for all browsers.

And as Jamie said, the pink outlined form field is kinda confusing as it's the only form field within the whole app behaving like this.

kremalicious avatar Feb 09 '23 09:02 kremalicious

closing this, minor improvement, taking too much time

mihaisc avatar Feb 21 '23 09:02 mihaisc