[wp-trac] [WordPress Trac] #58558: Twenty Nineteen: Separator block does not support theme colors in editor (was: Twenty Nineteen Separator block is having issue with background color in editor.)

WordPress Trac noreply at wordpress.org
Fri Jun 16 20:51:52 UTC 2023


#58558: Twenty Nineteen: Separator block does not support theme colors in editor
------------------------------+------------------------------
 Reporter:  nidhidhandhukiya  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Bundled Theme     |     Version:  6.2.2
 Severity:  minor             |  Resolution:
 Keywords:  needs-patch       |     Focuses:  css
------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => needs-patch
 * focuses:   => css
 * severity:  normal => minor


Comment:

 The colors work on the front end, so the patch would need to edit the
 `style-editor.scss` file (and be compiled to `style-editor.css`) instead
 of `style.css`.

 {{{
 .wp-block-separator {
         /* add these after existing styles */

         &.has-primary-background-color {
                 color: $color__link;
                 background-color: $color__link;
         }

         &.has-secondary-background-color {
                 color: $color__border-link-hover;
                 background-color: $color__border-link-hover;
         }

         &.has-dark-gray-background-color {
                 color: $color__text-main;
                 background-color: $color__text-main;
         }

         &.has-light-gray-background-color {
                 color: $color__text-light;
                 background-color: $color__text-light;
         }

         &.has-white-background-color {
                 color: #FFF;
                 background-color: #FFF;
         }
 }
 }}}

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


More information about the wp-trac mailing list