Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluid typography: add min and max viewport width configurable options #4989

Closed

Conversation

ramonjd
Copy link
Member

@ramonjd ramonjd commented Aug 10, 2023

🤞🏻 for WordPress 6.4

Backporting PHP changes from:

This PR adds configurable min and max viewport width values to the typography.fluid theme.json schema, to allow theme developers to configure their own default min and max viewport widths for calculating fluid font sizes.

The min and max viewport widths the boundaries, in terms of viewport widths, at which font size clamp values will stop being "fluid".

See WordPress/gutenberg#53081 for testing instructions.

Note that this PR will only affect the frontend.

A package update is required for the editor to reflect the changes.

Trac ticket: https://core.trac.wordpress.org/ticket/59048


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

…pography.fluid theme.json schema, to allow theme developers to configure their own default min and max viewport widths for calculating fluid font sizes.
@ramonjd ramonjd force-pushed the add/fluid-typography-viewport-config branch from 5913ae6 to 2c3ea4e Compare September 6, 2023 05:07
Copy link
Contributor

@tellthemachines tellthemachines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, changes LGTM!

@tellthemachines
Copy link
Contributor

Committed in r56535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants