Typography: Font size picker crashes when no font size preset exists #62072
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Type] Bug
An existing feature does not function as intended
Description
If no font size presets exist, including the default preset, changing the font size value causes the block to crash.
Step-by-step reproduction instructions
Enable Emptytheme.
Update theme.json with the code below.
Open the typography panel for the paragraph block.
❌ Problem 1: The font size picker renders an empty dropdown. I think the dropdown itself should be disabled.
Click the "Set custom size" button.
❌ Problem 2: Changing the value should cause the block to crash.
Screenshots, screen recording, code snippet
1f0fe334704ada408b14f6f1b7d5b9bb.mp4
Environment info
No response
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: