mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Editor: Ensure settings for fluid typography and spacingScale are not lost on theme export.
This change adds fluid typography as a valid setting and removes `spacingScale` from the array of presets. Props glendaviesnz, ramonopoly, tellthemachines. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68134e22c1
commit
29d48fbb20
@ -173,15 +173,6 @@ class WP_Theme_JSON {
|
||||
'classes' => array(),
|
||||
'properties' => array( 'padding', 'margin' ),
|
||||
),
|
||||
array(
|
||||
'path' => array( 'spacing', 'spacingScale' ),
|
||||
'prevent_override' => false,
|
||||
'use_default_names' => true,
|
||||
'value_key' => 'size',
|
||||
'css_vars' => '--wp--preset--spacing--$slug',
|
||||
'classes' => array(),
|
||||
'properties' => array( 'padding', 'margin' ),
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
@ -334,6 +325,7 @@ class WP_Theme_JSON {
|
||||
'units' => null,
|
||||
),
|
||||
'typography' => array(
|
||||
'fluid' => null,
|
||||
'customFontSize' => null,
|
||||
'dropCap' => null,
|
||||
'fontFamilies' => null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user