-
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
Latest posts block: Smaller font size for content and preserve content formatting #15722
Comments
This is just a Twenty Nineteen problem actually. Currently, Twenty Nineteen styles target everything within the latest post By default (if a theme supplies no styles), Latest Posts will look something like this: If anything, I think we could provide a little bottom padding to each of the latest posts. @jasmussen, what do you think? I know there's been pushback about adding styles like that.
Showing new lines is possible if you use the toggle and show the full post instead: Excerpts by default in WordPress remove all formatting, so I'm not sure we should change that here. |
Honestly I think it's fine to do this to provide a good baseline. We even have some options here — if we feel the styles are fundamental, they go in style.scss which is loaded in editor and frontend regardless. We just need to make sure that the CSS we write has as little specificity as possible. If we're on the fence about the fundamental necessity of those margins, we put them in editor.scss, which means themes that opt in get it. The only downside to putting it here is that it's still loaded in the editor even if not on the frontend. |
Thanks, @jasmussen. I've opened #15760 to try this out. |
I'm going to mark this one as closed for now: #15760 adds some default spacing. Thanks! |
Is your feature request related to a problem? Please describe.
The
Latest posts
block has a new feature (#14627 and #15453) to show post content. This is a great feature addition!Although, when the content setting is enabled, the font size of the content matches the title font size.
The formatting of the content is not preserved either.
Describe the solution you'd like
Latest posts block
as well.Example:
In these two images, it can be seen that:
Tubulo putas dicere?
inPost 19
) is not seen on theLatest posts
block.Describe alternatives you've considered
Gutenberg, browser and device version:
I am using Gutenberg 5.7.0-rc-1 on a Pressable site, with Google Chrome Version 74.0.3729.131 (Official Build) (64-bit) on macOS 10.14.4 - Mac OS Mojave.
The text was updated successfully, but these errors were encountered: