Font size "huge" does not respect the size specified in theme.json #54918
Labels
[Feature] Typography
Font and typography-related issues and PRs
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
Let's say, there is a font size called
huge
that is 100px in a theme.On the front of the site, an element with the
huge
size appears 100px, as expected. However, in the editor, it appears 42px.To demonstrate the issue, I've added a font size,
huge
to TT3'stheme.json
, and changed the size of the heading inhome.html
The size is overridden by this, which comes from here. The
!important
seems to be the problem.If I deactivate Gutenberg (trunk), the font size will return to 100px in the editor.
Step-by-step reproduction instructions
huge
or add the size like above in a theme.jsonhuge
size.Screenshots, screen recording, code snippet
No response
Environment info
WP 6.3.1.
Gutenberg trunk
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
The text was updated successfully, but these errors were encountered: