Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#55519 closed defect (bug) (reported-upstream)

In Block editor: Copying and inserting color codes makes them invalid

Reported by: treebranch's profile treebranch Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.2
Component: Editor Keywords:
Focuses: ui Cc:

Description (last modified by sabernhardt)

When you copy a color code from a block by clicking the color code via the color selection menu, it is automatically copied in this format: #000000
However, when inserting a color code in the textfield of the color selection menu, the string of text is automatically truncated at 6 characters, which leaves the user with #00000, an invalid color code which always results in the color black.

The best solution would be for the text field to be able to accept both color codes with and without the #.

Change History (1)

#1 @sabernhardt
3 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Hi and welcome to Trac!

Block editor reports belong on the Gutenberg GitHub Repository.

This bug was already reported and should be fixed in the next release:
https://github.com/WordPress/gutenberg/issues/37018

Note: See TracTickets for help on using tickets.