Description
When creating custom fluid fontSizes in theme.json, sometimes it's desirable to have the same min size but increase to a larger max size. Currently, if you set the size attribute to be the same across different fontSizes, this causes a bug in the editor where you can't select the size that has a matching size applied.
theme.json Example Code:
"fontSizes": [
{
"fluid": {
"min": "1rem",
"max": "1.25rem"
},
"size": "1rem",
"slug": "small"
},
{
"fluid": {
"min": "1rem",
"max": "1.5rem"
},
"size": "1rem",
"slug": "medium"
}
]
Editor error:

This issue can be fixed by setting different size attributes, but for code readability and consistency sometimes it's desirable to assign this number based on the min or max size, and there are niche instances where a developer might be forced to set this to an arbitrary number to avoid the editor bug.
Step-by-step reproduction instructions
- Create a clean install of WordPress, with the
twentytwentythree theme.
- Edit
theme.json, setting multiple fontSizes to the same number (e.g., set line 255 to 1rem and line 263 to 1rem)
- Try to assign these sizes within the editor, e.g. on a Paragraph block.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 6.2.2
- twentytwentythree, version 1.1
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
Description
When creating custom fluid
fontSizesin theme.json, sometimes it's desirable to have the sameminsize but increase to a largermaxsize. Currently, if you set thesizeattribute to be the same across differentfontSizes, this causes a bug in the editor where you can't select the size that has a matching size applied.theme.json Example Code:
Editor error:

This issue can be fixed by setting different
sizeattributes, but for code readability and consistency sometimes it's desirable to assign this number based on theminormaxsize, and there are niche instances where a developer might be forced to set this to an arbitrary number to avoid the editor bug.Step-by-step reproduction instructions
twentytwentythreetheme.theme.json, setting multiplefontSizesto the same number (e.g., set line255to1remand line263to1rem)Screenshots, screen recording, code snippet
No response
Environment info
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