WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.46k stars 4.18k forks source link

List Block: line height issue with twenty twenty-one theme #58870

Open VipulUpadala opened 8 months ago

VipulUpadala commented 8 months ago

Description

I have tested the list block with twenty twenty-one theme and found the backend side line height not working proper.

Step-by-step reproduction instructions

  1. Active the twenty twenty-one theme.
  2. Created a new page and take the list block.
  3. Apply line height setting and check it the backend side & frontend side is different.

Screenshots, screen recording, code snippet

Please check the below provide video recording video for a better understanding of issues.

Video: https://share.cleanshot.com/tWrpBv2y0McWnqsHj1WC

Environment info

Please confirm that you have searched existing issues in the repo.

No

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

github-actions[bot] commented 7 months ago

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

stacimc commented 3 months ago

I tried this on Gutenberg v18.7.1 and I do see a difference between the editor and the published post, but it's due to additional margin on the list items in the editor. The actual line-height is applied in both places:

Twenty Twenty One: Editor Frontend
Screenshot 2024-07-12 at 2 16 28 PM Screenshot 2024-07-12 at 2 17 25 PM
In comparison, this is TT1 Blocks: Editor Frontend
Screenshot 2024-07-12 at 2 05 59 PM Screenshot 2024-07-12 at 2 04 40 PM