Repository navigation
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
|
jorgefilipecosta
left a comment
There was a problem hiding this comment.
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