-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: merge consecutive lists #52995
Conversation
Size Change: +73 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in 6ce4045. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5673416662
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me 👍
I tried to find some hedge cases but did not find anything critically wrong. The most unexpected thing is if I have an empty group followed by a paragraph followed by another empty group. If I delete the paragraph using backspace I end up removing one of the groups and I get a single group with a paragraph inside. If I press backspace again the paragraph is removed and I get a single empty group. I think it is ok.
What?
Fixes #46039. When merging a paragraph that sits in between two lists of the same type, these two lists end up being side by side looking as one list, but are actually two separate lists.
Why?
It's confusing that the lists don't merge, and it's not easy to know that they don't.
How?
Checking the next block and merge nested items if the type and attributes match.
Testing Instructions
See #46039 (comment).
Testing Instructions for Keyboard
Screenshots or screencast