Make WordPress Core


Ignore:
Timestamp:
09/01/2023 04:01:23 AM (18 months ago)
Author:
isabel_brison
Message:

Editor: Don't use fluid layout value in typography.

Changes fluid typography calculation to use fallback value if layout wide size is a fluid value.

Props ramonopoly, mukesh27, jastos, aurooba.
See #58754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/typography.php

    r56084 r56503  
    700700                'expected_output' => 'font-size:15px;',
    701701            ),
     702            'returns clamp value using default config if layout is fluid' => array(
     703                'font_size_value' => '15px',
     704                'theme_slug'      => 'block-theme-child-with-fluid-layout',
     705                'expected_output' => 'font-size:clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.078), 15px);',
     706            ),
    702707        );
    703708    }
Note: See TracChangeset for help on using the changeset viewer.