-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Size Picker displays incorrect font-sizes in incorrect order. #55744
Comments
Thanks for the report. I was also able to confirm the same problem. |
I identified that this issue was caused by #55219, which decided to merge all origins. However, regarding font size, I think it should not be merged with the default origin, but should be completely replaced by the theme.json definition. Also, I found that the same problem occurs with SpacingControl. Here is an example theme.json: Details{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"appearanceTools": true,
"layout": {
"contentSize": "840px",
"wideSize": "1100px"
},
"spacing": {
"spacingSizes": [
{ "name": "XXXS", "size": "1em", "slug": "xxxs" },
{ "name": "XXS", "size": "2em", "slug": "xxs" },
{ "name": "XS", "size": "3em", "slug": "xs" },
{ "name": "S", "size": "4em", "slug": "s" },
{ "name": "M", "size": "5em", "slug": "m" },
{ "name": "L", "size": "6em", "slug": "l" },
{ "name": "XL", "size": "7em", "slug": "xl" },
{ "name": "XXL", "size": "8em", "slug": "xxl" },
{ "name": "XXXL", "size": "9em", "slug": "xxxl" },
{ "name": "XXXXL", "size": "10em", "slug": "xxxxk" }
]
}
}
}
cc: @matiasbenedetto, @pbking |
I’ve noticed this too. I’m glad the cause has been identified. |
For spacing, this seems to be the same issue: #55636 |
I'm searching for what solution would be best, but haven't found an answer yet. Therefore, I give it the "Needs Technical Feedback" label. |
I discovered that a similar problem also occurs with inline highlighting.
In TT4, the default palette is displayed even though it is disabled. If you temporarily revert the changes made in ##55219 on the current trunk, this issue will not occur. |
Since the suggestion on #55636 is to add |
I think this issue a high priority because I believe this behavior affects many users. So I'll add it to the WP6.5 Editor Tasks board. |
I've got the same problem. |
An interesting aspect:
{
"fluid": false,
"name": "Groß",
"size": "1.375rem",
"slug": "large"
}, |
Description
Font Size Picker seems to be broken since v16.9.0 release. See the issue below.
Step-by-step reproduction instructions
Try selecting a font size with Gutenberg plugin disabled (or with Gutenberg plugin v16.8.1), you will see Font Size Picker displayed correctly:
Enable Gutenberg 16.9.0, Font Size Picker displays nonsense - order is incorrect, default sizes displays incorrect values (in pixels, however it still works fine on the frontend)
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: