[wp-trac] [WordPress Trac] #56467: Update @wordpress packages and backport changes from Gutenberg plugin into Core
WordPress Trac
noreply at wordpress.org
Tue Sep 20 15:42:00 UTC 2022
#56467: Update @wordpress packages and backport changes from Gutenberg plugin into
Core
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by hellofromTonya):
In [changeset:"54260" 54260]:
{{{
#!CommitTicketReference repository="" revision="54260"
Editor: Introduces fluid typography and uses Style Engine.
This commit introduces fluid typography block supports and switches to use
the Style Engine for typography and colors.
The motivation for fluid typography block supports:
>"Fluid typography" describes how a site's font sizes adapt to every
change in screen size, for example, growing larger as the viewport width
increases, or smaller as it decreases.
>
>Font sizes can smoothly scale between minimum and maximum viewport
widths.
Typography changes introduced from Gutenberg:
* Uses the Style Engine to generate the CSS and classnames in
`wp_apply_typography_support()`.
* Introduces `wp_typography_get_preset_inline_style_value()` for
backwards-compatibility.
* Introduces a private internal function called
`wp_get_typography_value_and_unit()`, for checking and getting typography
unit and value.
* Introduces a private internal function called
`wp_get_computed_fluid_typography_value()`, for an internal implementation
of CSS `clamp()`.
* Deprecates `wp_typography_get_css_variable_inline_style()`.
References:
* [https://github.com/WordPress/gutenberg/pull/40332 WordPress/gutenberg
PR 40332] Style Engine: add typography and color to backend
* [https://github.com/WordPress/gutenberg/pull/39529 WordPress/gutenberg
PR 39529] Block supports: add fluid typography
Follow-up to [53076], [52302], [52069], [51089], [50761], [49226].
Props ramonopoly, youknowriad, aristath, oandregal, aaronrobertshaw,
cbirdsong, jorgefilipecosta, ironprogrammer, hellofromTonya.
See #56467.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56467#comment:196>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list