Font picker not reflecting correct size with custom font sizes #67283
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When a theme has several custom font sizes declared in theme.json, the global styles UI does not show the right label for the assigned font sizes. When you cycle through the H1-H6 selector, it shows random font sizes in the select label. See video below.
The issue does not affect a theme like 2025 which has the standard S, M, L, XL, XXL font size pattern. But when more font sizes are added to 2025, the issue does show.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
CleanShot.2024-11-25.at.13.56.46.mp4
Environment info
WP 6.7.1
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: