Skip to content

Commit

Permalink
Just backporting annotations from Core for consistency (#54204)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd authored Sep 6, 2023
1 parent 89a483f commit ad92865
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/block-supports/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,14 @@ function gutenberg_get_computed_fluid_typography_value( $args = array() ) {

/**
* Returns a font-size value based on a given font-size preset.
* Takes into account fluid typography parameters and attempts to return a css formula depending on available, valid values.
* Takes into account fluid typography parameters and attempts to return a CSS
* formula depending on available, valid values.
*
* @since 6.1.0
* @since 6.1.1 Adjusted rules for min and max font sizes.
* @since 6.2.0 Added 'settings.typography.fluid.minFontSize' support.
* @since 6.3.0 Using layout.wideSize as max viewport width, and logarithmic scale factor to calculate minimum font scale.
* @since 6.4.0 Added configurable min and max viewport width values to the typography.fluid theme.json schema.
*
* @param array $preset {
* Required. fontSizes preset value as seen in theme.json.
Expand Down

0 comments on commit ad92865

Please sign in to comment.