-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Inline styles in paragraph when setting custom sizes in the editor #7765
Comments
I just tested with WordPress 4.9.7 and Gutenberg 3.2.0 and I found that if I add some text to a paragraph block and set the font size to "L" that this is the resulting markup:
@samikeijonen I'm closing this issue for now because I couldn't spot any inline styles such as |
@designsimply Sorry I should have been more clear that this happens in the editor. |
Hi @samikeijonen, the inline styles are added on purpose on the editor. Soon themes will be able to change the font sizes & classes but if they don't set classes given that when registering a custom size themes told us what the expected size is, on the editor we use the expected font size anyway. |
Does that mean something like |
Exactly, the PR implementing this can be checked in #6628. |
#6628 is now merged, closing. |
Describe the bug
I still see this inline styles when adding Custom Size to paragraph in the editor.
To Reproduce
L
.style="font-size: 36px;"
.Expected behavior
What it should do is add class
is-large-text
so that it would respect what theme wants.In Core block these happens to be the same font sizes:)
cc: @mtias @jasmussen
The text was updated successfully, but these errors were encountered: