Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it clearer how to remove a block #32085

Open
simison opened this issue May 21, 2021 · 1 comment
Open

Make it clearer how to remove a block #32085

simison opened this issue May 21, 2021 · 1 comment
Labels
Needs Decision Needs a decision to be actionable or relevant Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@simison
Copy link
Member

simison commented May 21, 2021

What problem does this address?

Removing blocks is a fairly hidden feature behind the three dots dropdown, and requires multiple clicks, making it a more tedious task with multiple blocks.

Screenshot of menu item to remove block

Untitled.mov

Context

There generally are two ways to build a page layout:

  • You construct it yourself from scratch, or
  • you use a ready-made starting point such as a page template offered via numerous plugins, or block patterns offered by Gutenberg and themes. You then modify this to your needs.

When using a ready-made starting point, it's common to need to remove some of the demo content to "shape" the layout where you want it to be.

I believe patterns and page templates are the easiest way to start for many, so shaping these patterns should be as obvious as possible, too. A good example of this clarity is the "replace" button for images; not something you'd think you need until you get a ready-assigned image from a pattern.

In the case where you build things from scratch, such needs might not be as pronounced. You're considering additions more carefully and might not have as much need to go "back and forth".

What is your proposed solution?

I know the block toolbar is already busy (#24805) but I'd submit that removal is such common action that it makes sense a top-level item.

Proposed remove button visual

Perhaps this same icon can somehow tie into locking indicators as well (#29864) in cases where you cannot remove the block, but are free to move it around?

cc @mtias (and others) you probably know to point me to prior conversations/reasoning, as I'm sure there's plenty that I'm missing here!

@simison simison added the [Type] Enhancement A suggestion for improvement. label May 21, 2021
@mtias
Copy link
Member

mtias commented May 21, 2021

There's definitely plenty of history here :) Notably #7216

This action as added and removed from the toolbar a couple times in the past. The general thinking is removing is something that needs to work well with backspace when the block is selected.

@skorasaurus skorasaurus added Needs Design Needs design efforts. Needs Decision Needs a decision to be actionable or relevant labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Decision Needs a decision to be actionable or relevant Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants