-
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
Remove potentially useless style override for floats #20501
Conversation
80b539a
to
2ff52ef
Compare
Size Change: -86 B (0%) Total Size: 866 kB
ℹ️ 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.
The rule was introduced to address feedback we received at the time regarding how the block boundaries behaved. That is, the gray border that was painted outside each block, which was conflicting with floats.
Specifically this broke down if the very first block in the blocklist was floated, it would interfere with the title, which was not a block.
The substantial refactors made both to the block UI, to the margins and paddings in the editing canvas, and to the title itself, makes this CSS redundant. It's a pleasure to bid it farewell.
closes #17196
This style affects any floated block if it's the first block inside a container (or canvas).
I'm not really certain why this was added in the first place (introduced in #11357 ) but it seems useless for me and removing it solves #17196
Any ideas @jasmussen do we still need this style?