Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#22388 closed defect (bug) (fixed)

New color picker: Instant feedback when changing the hex value

Reported by: johnbillion Owned by: mattwiebe
Milestone: 3.5 Priority: low
Severity: normal Version: 3.5
Component: Administration Keywords: needs-patch
Focuses: Cc:


Previously: #21206

When you manually change the value in the hex input field the color picker isn't updated until the hex input field loses focus. We should hook into the onkeyup event and change the picker colour immediately (or rather, when a valid hex code is present).

Not sure if this should be reported here or upstream to Iris. Reporting it here anyway.

Change History (8)

#1 @SergeyBiryukov
6 years ago

  • Type changed from enhancement to defect (bug)

#2 @helenyhou
6 years ago

  • Component changed from UI to Administration
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 3.5

#3 @nacin
6 years ago

  • Owner set to mattwiebe
  • Status changed from new to assigned

#4 @mattwiebe
6 years ago

Unsure about this. I was waiting for someone to report this. The initial trouble with doing it as you type was that color error-handling was at that time not very good. Error-handling is pretty good now, but this may still introduce side effects. I will test and report back.

#5 @nacin
6 years ago

Waiting until they hit six characters would probably prevent most side effects.

#6 @nacin
6 years ago

  • Priority changed from normal to low

#8 @nacin
6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 22732:

Color picker: Instant feedback when typing a color. Strengthens alt + arrows for moving around the palette. props mattwiebe. fixes #22475. fixes #22388.

Note: See TracTickets for help on using tickets.