mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Editor: add text orientation for blocks with typography support.
Adds a new text orientation option to the typography block support, implemented with CSS writing-mode. Props poena. Fixes #59306. git-svn-id: https://develop.svn.wordpress.org/trunk@56605 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -203,6 +203,7 @@ class WP_Theme_JSON {
|
||||
* removed the `--wp--style--block-gap` property.
|
||||
* @since 6.2.0 Added `outline-*`, and `min-height` properties.
|
||||
* @since 6.3.0 Added `column-count` property.
|
||||
* @since 6.4.0 Added `writing-mode` property.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
@@ -261,6 +262,7 @@ class WP_Theme_JSON {
|
||||
'text-transform' => array( 'typography', 'textTransform' ),
|
||||
'filter' => array( 'filter', 'duotone' ),
|
||||
'box-shadow' => array( 'shadow' ),
|
||||
'writing-mode' => array( 'typography', 'writingMode' ),
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -340,7 +342,7 @@ class WP_Theme_JSON {
|
||||
* @since 6.2.0 Added `dimensions.minHeight`, 'shadow.presets', 'shadow.defaultPresets',
|
||||
* `position.fixed` and `position.sticky`.
|
||||
* @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
|
||||
* @since 6.4.0 Added `layout.allowEditing`.
|
||||
* @since 6.4.0 Added `layout.allowEditing` and `typography.writingMode`.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
@@ -409,6 +411,7 @@ class WP_Theme_JSON {
|
||||
'textColumns' => null,
|
||||
'textDecoration' => null,
|
||||
'textTransform' => null,
|
||||
'writingMode' => null,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -471,6 +474,7 @@ class WP_Theme_JSON {
|
||||
'textColumns' => null,
|
||||
'textDecoration' => null,
|
||||
'textTransform' => null,
|
||||
'writingMode' => null,
|
||||
),
|
||||
'css' => null,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user