Make WordPress Core


Ignore:
Timestamp:
06/22/2023 08:16:05 AM (2 years ago)
Author:
isabel_brison
Message:

Editor: add text columns to typography support.

Adds a text columns feature to the typography block support that uses CSS column-count for multi-column text.

Props ramonopoly, aaronrobertshaw.
Fixes #58549.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r55975 r55985  
    202202     *              removed the `--wp--style--block-gap` property.
    203203     * @since 6.2.0 Added `outline-*`, and `min-height` properties.
     204     * @since 6.3.0 Added `column-count` property.
    204205     *
    205206     * @var array
     
    229230        'border-left-style'                 => array( 'border', 'left', 'style' ),
    230231        'color'                             => array( 'color', 'text' ),
     232        'column-count'                      => array( 'typography', 'textColumns' ),
    231233        'font-family'                       => array( 'typography', 'fontFamily' ),
    232234        'font-size'                         => array( 'typography', 'fontSize' ),
     
    335337     * @since 6.2.0 Added `dimensions.minHeight`, 'shadow.presets', 'shadow.defaultPresets',
    336338     *              `position.fixed` and `position.sticky`.
     339     * @since 6.3.0 Added support for `typography.textColumns`.
     340     *
    337341     * @var array
    338342     */
     
    396400            'letterSpacing'  => null,
    397401            'lineHeight'     => null,
     402            'textColumns'    => null,
    398403            'textDecoration' => null,
    399404            'textTransform'  => null,
     
    412417     *              updated `blockGap` to be allowed at any level.
    413418     * @since 6.2.0 Added `outline`, and `minHeight` properties.
     419     * @since 6.3.0 Added support for `typography.textColumns`.
    414420     *
    415421     * @var array
     
    456462            'letterSpacing'  => null,
    457463            'lineHeight'     => null,
     464            'textColumns'    => null,
    458465            'textDecoration' => null,
    459466            'textTransform'  => null,
Note: See TracChangeset for help on using the changeset viewer.