#61932 closed enhancement (fixed)
Fluid typography: allow individual preset overrides
Reported by: | ramonopoly | Owned by: | ramonopoly |
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch has-unit-tests gutenberg-merge |
Focuses: | css | Cc: |
Description
Individual font sizes may opt out of fluid typography if it is turned on globally.
Individual font size presets should also be able to opt in to fluid typography if it is not turned on globally.
See the original Gutenberg issue:
Change History (4)
This ticket was mentioned in PR #7247 on WordPress/wordpress-develop by @ramonopoly.
7 weeks ago
#1
@ramonopoly commented on PR #7247:
7 weeks ago
#2
Thanks for testing! I'll update those small things.
I'm assuming it's just a copy pasta from the Gutenberg PR.
You assume correctly 😄 I'll update.
#3
@
7 weeks ago
- Owner set to ramonopoly
- Resolution set to fixed
- Status changed from new to closed
In 58950:
@ramonopoly commented on PR #7247:
7 weeks ago
#4
Note: See
TracTickets for help on using
tickets.
This PR syncs the following Gutenberg PR:
## What?
This PR allows individual font preset overrides.
So, if fluid typography is disabled or not active but an individual font preset does enable it, calculate the clamp value for that individual preset.
## Why?
Individual font sizes may opt out of fluid typography if it is turned on globally.
This PR does the opposite: individual font size presets can opt in to fluid typography if it is not turned on globally.
## How?
Check if fluid settings on individual font size presets are present.
## Testing Instructions
"fluid": true
to the preset object. See the below example theme.json.<details>
<summary>Here is some test theme.json</summary>
</details>
Trac ticket: https://core.trac.wordpress.org/ticket/61932