Make WordPress Core

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#63526 closed defect (bug) (duplicate)

Twenty Twenty-One: Margin inconsistencies in List block between Editor and Frontend

Reported by: rishabhwp Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version:
Severity: normal Keywords:
Cc: Focuses:

Description

I found this issue originally reported here:
​https://github.com/WordPress/gutenberg/issues/58870

After testing it myself, I can confirm that the issue still persists in the latest version of WordPress only when using the Twenty Twenty-One theme.

Problem:
There is a visual inconsistency in how the List block is rendered in the block editor (backend) versus the frontend:

  • In the editor, each <li> item appears to have top and bottom margin.
  • In the frontend, this spacing is not present.

Editor View

https://i.postimg.cc/rsbM8KBF/Screenshot-2025-06-04-at-6-12-24-PM.png

Frontend View

https://i.postimg.cc/J4fMvH3p/Screenshot-2025-06-04-at-6-12-33-PM.png

Change History (5)

This ticket was mentioned in ​PR #8895 on ​WordPress/wordpress-develop by ​@rishabhwp.


16 months ago
#1

  • Keywords has-patch added

Trac ticket: https://core.trac.wordpress.org/ticket/63526

This PR addresses a visual inconsistency in the Twenty Twenty-One theme where list items in the block editor (List block) display additional vertical spacing not present on the frontend.

#2 @sandeepdahiya
16 months ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #60196.

This issue was earlier discussed in in Trac Ticket: https://core.trac.wordpress.org/ticket/60196
This still seems to be present.

Last edited 16 months ago by sandeepdahiya (previous) (diff)

#3 @rishabhwp
16 months ago

  • Keywords close added; has-patch removed

I have created a PR and attached it to ticket (https://core.trac.wordpress.org/ticket/60196). Closing it as its duplicate.

#4 @sabernhardt
16 months ago

  • Keywords close removed
  • Milestone Awaiting Review

​@rishabhwp commented on ​PR #8895:


16 months ago
#5

Hey @sabernhardt,
I'm new to core contributions. I have implemented the changes you suggested on Trac. Could you please review the PR or tag someone who can take a look? Thanks a lot!

Note: See TracTickets for help on using tickets.