[wp-trac] [WordPress Trac] #57978: Twenty Twenty: Separator block does not work well with gradients (was: Twenty Twenty: Separator block having issue in background color)

WordPress Trac noreply at wordpress.org
Sat Jun 10 06:53:38 UTC 2023


#57978: Twenty Twenty: Separator block does not work well with gradients
-------------------------------------+------------------------------
 Reporter:  nidhidhandhukiya         |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  css
-------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  needs-patch => needs-patch 2nd-opinion
 * type:  defect (bug) => enhancement


Comment:

 I'm switching this to an enhancement. Gradients do not work well with the
 `— // —` double-slash styling Twenty Twenty uses, and it is not worth
 trying to add support for that when the theme never had its own gradients
 (#49711).

 Maybe removing the slashes from all separators with gradients could be
 reasonable (front end and block editor styles):
 {{{
 hr.wp-block-separator[class*="-gradient-background"]::before,
 hr.wp-block-separator[class*="-gradient-background"]::after {
   content: none;
 }
 }}}

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


More information about the wp-trac mailing list