[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:09:26 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  |     Focuses:
--------------------------------------+----------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54821" 54821]:
 {{{
 #!CommitTicketReference repository="" revision="54821"
 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.
 Fixes #56903.
 }}}

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


More information about the wp-trac mailing list