Make WordPress Core


Ignore:
Timestamp:
06/22/2023 08:16:05 AM (21 months 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/style-engine/class-wp-style-engine.php

    r55820 r55985  
    2222 * @access private
    2323 * @since 6.1.0
     24 * @since 6.3.0 Added support for text-columns.
    2425 */
    2526#[AllowDynamicProperties]
     
    218219                'path'          => array( 'typography', 'lineHeight' ),
    219220            ),
     221            'textColumns'    => array(
     222                'property_keys' => array(
     223                    'default' => 'column-count',
     224                ),
     225                'path'          => array( 'typography', 'textColumns' ),
     226            ),
    220227            'textDecoration' => array(
    221228                'property_keys' => array(
Note: See TracChangeset for help on using the changeset viewer.