Skip to content

Top margin of the image block is missing in TT2 #50644

Description

@ya123123

Description

The top margin of the image block is missing in the TT2 front-end view when using the Gutenberg plugin.
It appears that the wp-block-styles (theme.css) is overriding the new global margin #47858.

In the editor, the top margin is available.

Step-by-step reproduction instructions

  1. Create a post and add paragraph and image block.
  2. Check the front-end view.

Screenshots, screen recording, code snippet

Front-end

front front-margin

Editor

editor editor-margin

Environment info

  • WP 6.2
  • Twenty Twenty 2
  • Gutenberg plugin 15.7.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions