You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add two paragraph blocks and set their background color to make the gap between them apparent. It should be 24px as set by the default Gutenberg blockGap, which translates to inline style rules for all inherited theme template parts like
Now add a default (100px) spacer block between the two.
Result
The two paragraphs will now be separated by 148 pixels.
Expected
Instead of 148px, the more logical seems 124px, which most users would expect. With the extra added margin for the spacer block, there is no way to set the space between 24px and 49px (even with a 1px spacer, the space will be 24+24+1).
Spacer block should actually take the space that you set, not have its own margin too.
Proposal
Add this, or something similar, at least for the time being, to ponyfill.css:
In fact, I would argue for adding one extra rule, which takes care of another (related) inconsistency in expected block gaps: the first block top margin (which is not addressed by the > * + * rule) will many times depend on either the custom vertical margin (different value) or an unexpected browser default. This needs a small reset as proposed on WordPress/gutenberg#33812
Steps to replicate
Add two paragraph blocks and set their background color to make the gap between them apparent. It should be 24px as set by the default Gutenberg blockGap, which translates to inline style rules for all inherited theme template parts like
Now add a default (100px) spacer block between the two.
Result
The two paragraphs will now be separated by 148 pixels.
Expected
Instead of 148px, the more logical seems 124px, which most users would expect. With the extra added margin for the spacer block, there is no way to set the space between 24px and 49px (even with a 1px spacer, the space will be 24+24+1).
Spacer block should actually take the space that you set, not have its own margin too.
Proposal
Add this, or something similar, at least for the time being, to ponyfill.css:
The text was updated successfully, but these errors were encountered: