#52449 closed defect (bug) (fixed)
Can't change font size with 5.6.1 paragraph block
Reported by: | sterndata | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.6.2 | Priority: | normal |
Severity: | major | Version: | 5.6.1 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
If I select a font size from the dropdown, it just reverts to "default". This seems to be a 5.6.1 issue. There are at least a couple of reports of this in the forums.
https://www.loom.com/share/56fd0d20ac92477bb364aa2c1866c171
Attachments (1)
Change History (20)
#3
follow-up:
↓ 12
@
4 years ago
Related to #52431 where a fix is ready for Twenty Twenty-One theme.
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
4 years ago
#5
@
4 years ago
Is this specific to Twenty Twenty-One theme? I'm having this issue in 5.6.1 on all the sites I test (I use Genesis and register custom font sizes using add_theme_support editor-font-sizes).
#6
@
4 years ago
Thank you for providing more information @mwhiteley16! It does appear to be a regression.
#8
@
4 years ago
This happened to me on my site using a different theme - All text which had been changed reverted back to default size and could not be edited by selecting different sizes. I contacted my host who rolled WordPress back to 5.5.3 and i can now edit text again! Good luck.
#9
@
4 years ago
The reason why the text size is not reflected in the choices is that the first argument of min() is missing px.
The reason why the text does not reflect the font size when you select an option is that it refers to selectedItem.style
.
For the first problem, I threw a pull request to Gutenberg.
https://github.com/WordPress/gutenberg/pull/28761
The second problem has probably been fixed in the latest version of Gutenberg.
#10
@
4 years ago
Confirmed happens on Astra as well. Tested on two different WordPress 5.6.1 installations using different themes.
Workaround: manually adding the required style in the block's "Advanced - Additional CSS" (e.g. has-medium-font-size for medium fonts) displays correctly on the front end, but the change is not visible in Gutenberg.
#12
in reply to:
↑ 3
@
4 years ago
Replying to hellofromTonya:
Related to #52431 where a fix is ready for Twenty Twenty-One theme.
Just to clarify, that Twenty Twenty-One ticket is about the code block and this one is about a regression in the paragraph block in 5.6.1, so I don't think they are related.
#13
@
4 years ago
I'm using a child theme of Olsen-Light and am experiencing the same issue. If I try to change the font size to "Medium" it reverts back to "Default". As a workaround, I found if I enter 20 in the "Custom" pulldown, the font field changes to "Medium".
#16
@
4 years ago
I also experienced this today trying out Gutenberg with a custom theme that was built around 4 years ago. Same as @lurmadec - the custom size number field works, but not the small/med/large/etc drop down. And if you hit the exact number for the named size, it fills it in.
Also reported here: https://github.com/WordPress/gutenberg/pull/26705#issuecomment-773068915