[wp-trac] [WordPress Trac] #60815: Regression with theme.json `settings.shadow.defaultPresets`

WordPress Trac noreply at wordpress.org
Wed Mar 20 17:19:16 UTC 2024


#60815: Regression with theme.json `settings.shadow.defaultPresets`
--------------------------+-----------------------------
 Reporter:  ajlende       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 #60633 introduced a regression in shadow defaultPresets. Details and
 discussion in [https://github.com/WordPress/gutenberg/issues/59989
 WordPress/gutenberg#59989].


 {{{#!json
 // Relevant parts of theme.json
 {
   "settings": {
     // `appearanceTools` is not set
     "shadow": {
       // `defaultPresets` is not set
       "presets": [
         {
           "name": "Natural",
           "slug": "natural",
           "shadow": "2px 2px 3px #000"
         }
       ]
     }
   }
 }
 }}}


 {{{#!css
 /* Generated CSS before */
 --wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
 }}}


 {{{#!css
 /* Generated CSS after */
 --wp--preset--shadow--natural: 2px 2px 3px #000;
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60815>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list