Skip to content
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

List Block: Indentation removed when first item is deleted #45494

Closed
danielbachhuber opened this issue Nov 2, 2022 · 2 comments
Closed

List Block: Indentation removed when first item is deleted #45494

danielbachhuber opened this issue Nov 2, 2022 · 2 comments
Labels
[Block] List Affects the List Block

Comments

@danielbachhuber
Copy link
Member

Description

When the first item is removed from a list, the indentation is unexpectedly removed from the list block:

CleanShot.2022-11-02.at.09.19.01.mp4

I would expect the list's indentation to remain.

Step-by-step reproduction instructions

  1. Create a new List Block.
  2. Add three items: First list item, Second list item, Third list item.
  3. Remove the first list item.
  4. Observe indentation removed from the entire block.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.2-alpha-20221102.090915
  • Gutenberg 14.5.0-rc.1
  • Firefox 106.0.3 and Chrome 106.0.5249.119 on Mac

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

Yes

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

Yes

@carolinan carolinan added the [Block] List Affects the List Block label Nov 2, 2022
@ellatrix
Copy link
Member

ellatrix commented Nov 2, 2022

This has been the behaviour since the start of Gutenberg, which I don't like either and want to change with #45075. Closing as a duplicate of #34100.

@ellatrix ellatrix closed this as completed Nov 2, 2022
@danielbachhuber
Copy link
Member Author

@ellatrix Makes sense, thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block
Projects
None yet
Development

No branches or pull requests

3 participants