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

WordPress Trac noreply at wordpress.org
Sun Apr 3 14:00:02 UTC 2022


#55519: In Block editor: Copying and inserting color codes makes them invalid
--------------------------+-----------------------------
 Reporter:  treebranch    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.9.2
 Severity:  normal        |   Keywords:
  Focuses:  ui            |
--------------------------+-----------------------------
 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 #.

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


More information about the wp-trac mailing list