-
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
Make the default padding match the browser's default padding #30277
Conversation
Size Change: +272 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
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.
Yep. 8 is also a nice round number.
Funny that a padding change make that e2e test fail consistently. In trunk, it fails too but inconsistently :) |
I've had some test like that fail because there's room for more text, so it wraps and takes up less space, and suddenly 3 lines of text becomes 2, and then "arrow down 3 times" selects a different block. |
@@ -419,7 +419,7 @@ describe( 'Multi-block selection', () => { | |||
}, | |||
{ | |||
// Move a bit outside the paragraph. | |||
x: rect2.x - 10, | |||
x: rect2.x - 5, |
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.
Nice :D
I considered several approaches here:
These options didn't feel great and I just aligned the default padding used with the "body" one, I think it's a sane default that ensures WYSIWYG for themes by default.