Table Block: Block margin override layout margin #55409
Labels
[Block] Table
Affects the Table Block
[Feature] Layout
Layout block support, its UI controls, and style output.
[Package] Block library
/packages/block-library
[Type] Bug
An existing feature does not function as intended
Description
The Table block itself has
margin: 0 0 1em
value. This selector has a higher specificity, so it overrides the margins above the blocks and eliminates the white space between the blocks.From what I remember, the selector specificity of the layout was reduced. I think this may have brought this issue to the surface. The figure element, which is a wrapper element for the table block, already has a low-specificity style. Therefore, I think the block margin should be removed.
By the way, this style for the Table block exists in theme.css. However, an issue has been reported in #54783 where the Gutenberg plugin's
theme.css
cannot override the coretheme.css
. Therefore, it is not possible to debug whether or not removing the block margin has resolved the issue. Regarding this issue, I submitted #54936.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: