-
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 figure margins consistently in image blocks. #31650
Conversation
Size Change: +22 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
I had a concern about zeroing in the left/right margins on an adjacent PR, but that was not a problem in the themes I tested, and is not a problem here — the wide system auto left/right margins override as they should, seen here in TT1: At a glance things also look fine in Empty Theme, however for some reason, probably trunk related, I don't have access to left/center/right controls for images here: |
This is related to #30568. It's undecided now :) we can allow left/right there but these will show left/right aligned by the edge of the container and not the "centered" content area. |
Gotcha. In any case, this seems okay. Should those margins apply only to left and right, though? I guess that's a larger question around general block margins. I'm leaning towards yes to zero out the margins, and happy to green check that. But I'd also be happy to hear from some of the themers CC'ed, as I've seen many "block margin" CSS variables in themes lately. |
they already apply to the other alignments, this PR adds them to left/right/center as these alignments change the markup of the block itself. |
Related to #29517
in #29517 we removed the figure margins from all blocks but in the image block, when it's left, right or center aligned the figure is actually not the block wrapper, too the rule there don't apply. This PR adds an additional style to fix that.
Testing instructions