Make WordPress Core

Opened 4 weeks ago

Last modified 9 days ago

#47340 new defect (bug)

Twenty Nineteen: Revise Latest Posts block styles to support post content options.

Reported by: kjellr Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch has-screenshots
Focuses: Cc:


The Latest Posts block in Gutenberg has recently been updated to include the option of showing post content in addition to post titles and dates:


Because Twenty Nineteen's stylesheet is written to target all text inside the li items in this block, the post content is not formatted properly:


The attached patch cleans up those styles, and also adjusts the text style for the post date, so that it matches one of the theme's standard font sizes:


The patch includes both front end and editor styles, and shouldn't negatively effect any other blocks that share some of these styles (the Archives and Categories blocks).

Attachments (3)

47340.diff (8.4 KB) - added by kjellr 3 weeks ago.
47340.1.diff (10.4 KB) - added by kjellr 10 days ago.
47340.2.diff (10.9 KB) - added by ianbelanger 9 days ago.
Refreshed patch

Download all attachments as: .zip

Change History (8)

3 weeks ago

#1 @kjellr
3 weeks ago

Update: I've added a fresh version of the patch to be compatible with the changes in the following two Gutenberg updates:


#2 @ianbelanger
10 days ago

  • Keywords needs-refresh added

Maybe I am missing something, but it appears that there aren't any front-end styles in your patch. I see the RTL styles, but none for LTR. Patch works great for the back-end though.

10 days ago

#3 @kjellr
10 days ago

  • Keywords needs-refresh removed

Oh, very weird! Thanks for catching that. I've added a recompiled patch that includes the changes to style.css: 47340.1.diff.

#4 @ianbelanger
9 days ago

No problem @kjellr, I tried testing your latest patch and it wouldn't apply. The file paths were missing from the diff, so I refreshed it. Uploading soon.

9 days ago

Refreshed patch

#5 @kjellr
9 days ago

😄Thank you! Must've forgot to cd back out of the Twenty Nineteen directory after re-compiling.

Note: See TracTickets for help on using tickets.