Skip to content

Media & Text: text content should use layout flow spacing #70264

@benoitchantre

Description

@benoitchantre

Description

The first element inside the content of this block will keep its top margin if it has one. For example, headings or paragraphs have a top margin inherited from the browser styles.

I expect the inner content of this block to be spaced like other blocks.

I suggest to add the following classes to the text content part is-layout-flow and wp-block-media-text__content-is-layout-flow.

Step-by-step reproduction instructions

  1. Add a Media Text block
  2. Add some content
  3. See that the first item keeps it top margin (heading, paragraph)

Screenshots, screen recording, code snippet

Image

Environment info

  • WordPress 8.1
  • Firefox

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Block] Media & TextAffects the Media & Text Block[Feature] LayoutLayout block support, its UI controls, and style output.[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

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