theme.json h1 tag font size is override by core heading block font size #61988
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Status] Needs More Info
Follow-up required in order to be actionable.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
Description
when in theme.json file I add font size for both core/heading and h1 to h6 elements, core/heading font size override the h1 to h6 font size. Due to this by default h1 and h2 tags remain same font size and I have to apply manual font size to various heading blocks based on its tag (h1, h2, h3 etc.)
Step-by-step reproduction instructions
"styles": {
"blocks": {
"core/heading": {
"typography": {"fontSize": "var(--wp--preset--font-size--large)"}
}
}
}
"styles": {
"elements": {
"h1": {
"typography": {"fontSize": "var(--wp--preset--font-size--extra-huge)"}
}
}
} etc.
Screenshots, screen recording, code snippet
No response
Environment info
Wordpress Version - 6.5.3
I am not using gutenberg plugin as separate plugin, but block editor is using gutenberg version available for the wordpress version.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: