[wp-trac] [WordPress Trac] #60765: Typography Presets

WordPress Trac noreply at wordpress.org
Wed Mar 13 04:54:33 UTC 2024


#60765: Typography Presets
-------------------------+-------------------------------------------------
 Reporter:  ramonopoly   |      Owner:  (none)
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  6.6
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch has-unit-tests gutenberg-
  Focuses:               |  merge
-------------------------+-------------------------------------------------
 We should pass theme.json settings to global preset or style value-
 generating callbacks.

 Currently `value_func` callable properties in `PRESETS_METADATA` do not
 have access to the current theme JSON settings.

 An example:

 `wp_get_typography_font_size_value()` needs to know other theme.json
 settings in order to correctly output values.

 Styles generated by `WP_Theme_JSON::get_stylesheet` outside a WordPress
 instance, using custom settings will therefore have no effect.


 See bug issue for further details:
 https://github.com/WordPress/gutenberg/issues/58135



 This ticket is to sync the following Gutenberg PR:
 https://github.com/WordPress/gutenberg/pull/58362

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


More information about the wp-trac mailing list