WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Media & Text: add "gap" options #67208

Open sgomes opened 15 hours ago

sgomes commented 15 hours ago

What problem does this address?

The existing Media & Text controls for padding and margin apply to the entire block:

Image

This makes it difficult to use the media block for use-cases where more control is needed within the block, such as:

What is your proposed solution?

The introduction of a gap option for the text could help. This would be implemented as a configurable 4-way padding or margin around the text, allowing the user to control:

An alternative would be having a separate padding controls for the media and the text:

Image

Mayank-Tripathi32 commented 14 hours ago

Hi @sgomes,

Thank you for raising this issue. I believe many of the suggested actions can be achieved by simply wrapping the paragraph in a Group block.

Image