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

Expose block structure #28852

Closed
EricDu opened this issue Feb 8, 2021 · 1 comment
Closed

Expose block structure #28852

EricDu opened this issue Feb 8, 2021 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@EricDu
Copy link

EricDu commented Feb 8, 2021

What problem does this address?

It is often difficult to know where one block ends and the other begins, especially when working with columns or nested blocks.

What is your proposed solution?

I usually use something like the following in my theme's editor styles to expose the block structure in a subtle way:
.wp-block { padding: 2px; border: 1px dotted #eee; } .wp-block.is-hovered { border: 1px dotted #ccc; } .wp-block.is-selected { border: 1px dotted #888; }
My suggestion is to add an option to Gutenberg for "Show block structure" with 3 possible values: none (default), subtle, and strong.

Selecting one of the visible option would add a class to the block editor and CSS similar to what I'm currently using (but more thorough to account for different block types) would be applied.

@skorasaurus skorasaurus added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Feb 8, 2021
@skorasaurus
Copy link
Member

Hi,

Thanks for reporting. I personally encounter this as well and use the block outlines feature in the editorskit plugin.
There's a couple different issues related to this that have requested this to be built into Gutenberg: #22383 , #25133, and #23892

You can follow their progress by subscribing to those issues. If you feel that this issue isn't covered by one of those issues, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants