[wp-trac] [WordPress Trac] #55519: In Block editor: Copying and inserting color codes makes them invalid

WordPress Trac noreply at wordpress.org
Mon Apr 4 06:48:03 UTC 2022


#55519: In Block editor: Copying and inserting color codes makes them invalid
--------------------------+--------------------------------
 Reporter:  treebranch    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  5.9.2
 Severity:  normal        |  Resolution:  reported-upstream
 Keywords:                |     Focuses:  ui
--------------------------+--------------------------------
Changes (by sabernhardt):

 * status:  new => closed
 * resolution:   => reported-upstream
 * milestone:  Awaiting Review =>


Old description:

> 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 #.

New description:

 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 #.

--

Comment:

 Hi and welcome to Trac!

 Block editor reports belong on the
 [https://github.com/WordPress/gutenberg/issues/new/choose Gutenberg GitHub
 Repository].

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55519#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list