-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Document list] List items are not removed correctly with backspace #11347
Comments
Document-wise, that's an expected behavior. That's exactly what happens in Google Docs. However, in GDoc when item 3 is merged into item 2, the item 2 is not moved "down". Additional spacing appears, but it affects item 3 only. We may want to improve styling for blocks inside lists a bit to mimic this. |
That's how it works on Google Docs: Mar-02-2022.11-28-33.mp4Note, that I have paragraphs ("Normal text") style in Google Docs to have bigger space after them: If you'd test it with the default styles that Google Docs come with (no spacing around paragraphs), it would look a bit differently: Mar-02-2022.11-50-23.mp4To sum up:
|
Goals:
|
.ck-content li > p {
margin: 0;
} for starters and let's see where do we go from here. |
Decision Let's apply this style to the first (margin-top) / last paragraphs (margin-bottom). To test Nested |
Related ticket: #16866. |
Related (not functionally, but due to combined confusion that these issues create together): #16884. |
Part of #11377.
📝 Provide detailed reproduction steps (if any)
ck/10812-document-list-editing
backspace
✔️ Expected result
Item gets removed, cursor goes up to the previous list item.
❌ Actual result
Cursor does not go to the previous list item. All other list items get spaced out, which looks bad. Only after second
backspace
they get back to normal.Screencast
0_list2.mp4
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: