Skip to content

[WP 6.1] Global Styles: Heading elements UI doesn't output fluid font size #44752

@ya123123

Description

@ya123123

Description

When I use TT3 and set H1 to XXL at Styles > Typography > Heading, the output is not a fluid font size.

Expected global style output:
h1 {font-size: var(--wp--preset--font-size--xx-large);}
or
h1 {font-size: clamp(4rem,4rem + ((1vw - 0.48rem) * 30.769);}

Happens instead:
h1 {font-size: 10rem}

Step-by-step reproduction instructions

  1. Use WP 6.1 beta 3 and Twenty Twenty Three without gutenberg plugin
  2. Go to the site editor > Styles > Typography > Headings
  3. Set H1 size to XXL

Screenshots, screen recording, code snippet

TT3 theme.json XXL font-size setting:

{
	"size": "10rem",
	"slug": "xx-large",
	"fluid": {
		"min": "4rem",
		"max": "20rem"
	}
}

Styles > Typography > Heading setting:
t5

Global style output:

h1 {font-size: 10rem}

Environment info

WP 6.1-beta3-54396, instawp install
TT3 included in WP 6.1 nightly.
Gutenberg plugin deactivated

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] TypographyFont and typography-related issues and PRs[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions