When font size is turned off in theme.json, the typography panel does not completely hide the font size option. #59732
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Type] Bug
An existing feature does not function as intended
Description
Developers can use theme.json to enable font sizes site wide. They can also remove them for a single block by setting
"customFontSize": false
and leaving the fontSizes array empty:"fontSizes": []
.This removes the font size control from the global styles block typography panel: Site Editor > Styles Sidebar > Blocks > Block name > Typography;
But not from the Typography panel when an individual block is selected.
Step-by-step reproduction instructions
Add the following to the
settings
section of theme.json:Open the block editor or site editor and add a heading block.
Open the Typography panel in the block settings panel (the inspector). Check if the font size options are present.
Screenshots, screen recording, code snippet
In this image, the Typography panel is expanded by default, but empty:
Environment info
WordPress 6.4.3, 6.5 RC.
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: