Skip to content

Contextual Block Padding (Spacing) Controls #33221

@richtabor

Description

@richtabor

What problem does this address?

As the block content area is the primary level of interaction, let's consider exploring how we could empower site publishers to design with contextual spacing controls within the blocks themselves.

  • This could work for padding, and probably margin as well.
  • We could implement keyboard shortcuts for modifying X/Y/all values at a time (similar to Figma/Photoshop/etc).

What is your proposed solution?

Having a hover area the size of the current padding, that can be dragged to a specific size. The existing control within the Spacing PanelBody should reflect the changes. I should be able to utilize keyboard shortcuts to drag both X values at a time, or both Y values, or even all values.

I drew up some explorations below for us to maybe jive on if we're down.

Video:

padding.mp4

Screenshots:

Screen Shot 2021-07-06 at 10 20 33 AM

Screen Shot 2021-07-06 at 10 20 46 AM

Screen Shot 2021-07-06 at 10 20 58 AM

Prototype:

https://www.figma.com/proto/ETa2dTgPUjltCOEQNnceUI/Gutenberg-Explorations?page-id=14%3A2&node-id=17%3A15&viewport=1634%2C2708%2C1&scaling=min-zoom

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] GroupAffects the Group Block (and row, stack and grid variants)[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions