[wp-meta] [Making WordPress.org] #6424: Possible css conflicts in pattern preview of themes directory

Making WordPress.org noreply at wordpress.org
Tue Aug 16 02:33:47 UTC 2022


#6424: Possible css conflicts in pattern preview of themes directory
-----------------------------+---------------------
 Reporter:  wetah            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:
Component:  Theme Directory  |  Resolution:
 Keywords:                   |
-----------------------------+---------------------

Comment (by dufresnesteven):

 I am able to reproduce both scenarios.

 The reason why the Pattern Preview styles are overriding your `border-
 radius: 0` style is because that website (the preview is generated by a
 website) has the `Gutenberg` plugin specifically installed as a plugin. As
 a result, the Gutenberg styles are being queued after your inline CSS
 styles. Since this is a common scenario, I think it's probably better that
 you make sure your inline styles are always queued later or add
 `!important` to that declaration.

 You can reproduce by doing the following:
 - Activate the theme in your environment
 - Add pattern to a page
 - Verify that the pattern looks correct on the page
 - Install the latest version of Gutenberg as a plugin
 - Verify that the pattern is now rounded on the page

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6424#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list