[wp-trac] [WordPress Trac] #56903: Separator colors defined using background within theme.json for style variations are ignored

WordPress Trac noreply at wordpress.org
Fri Nov 11 17:23:33 UTC 2022


#56903: Separator colors defined using background within theme.json for style
variations are ignored
--------------------------------------------------+----------------------
 Reporter:  cbravobernal                          |       Owner:  desrosj
     Type:  defect (bug)                          |      Status:  closed
 Priority:  normal                                |   Milestone:  6.1.1
Component:  Editor                                |     Version:
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-major  |     Focuses:
--------------------------------------------------+----------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54822" 54822]:
 {{{
 #!CommitTicketReference repository="" revision="54822"
 Editor: Correctly style separator blocks when only a `background-color` is
 defined.

 When separator blocks are configured using only a `background-color`, they
 are shown correctly within the editor but not on the front end.

 This changes `WP_Theme_JSON` to detect this scenario and move the
 `background-color` value to just `color` when both `color` and `border-
 color` are missing.

 Props cbravobernal, flixos90, davidbaumwald, hellofromTonya, desrosj,
 andrewserong, czapla, glendaviesnz, wildworks.
 Merges [54821] to the 6.1 branch.
 Fixes #56903.
 }}}

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


More information about the wp-trac mailing list