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

Styling suggestion for Block components panel #7063

Closed
weavertheme opened this issue May 31, 2018 · 3 comments
Closed

Styling suggestion for Block components panel #7063

weavertheme opened this issue May 31, 2018 · 3 comments
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.

Comments

@weavertheme
Copy link

Is your feature request related to a problem? Please describe.
I'm building a plugin with a block that has more options than might be typical. I've divided the options into several normally closed panels. When a subpanel is opened, it tends to blend into the other options, and gets visually lost.

Describe the solution you'd like
I've added this CSS to the editor styling, and it really makes things much visually easier for the user.

.components-panel__body.edit-post-block-sidebar__panel.is-opened .components-panel__body.is-opened {
	background-color: rgba(0,0,0,.02);
	border-bottom: 1px solid #888888;
}

I think this works pretty well for any of the control panel items, but if you don't consider it appropriate, then it would be nice if the base class of the current block were added around the block components section so this customization rule won't apply to other block's panels.

Describe alternatives you've considered
Simply adding stronger top/bottom borders might work as well.

@chrisvanpatten
Copy link
Contributor

I agree that the lack of borders between panels in the block inspector makes everything sort of blend together, and really hinders scanability.

@Soean Soean added the Needs Design Feedback Needs general design feedback. label Jul 3, 2018
@designsimply designsimply added [Type] Enhancement A suggestion for improvement. General Interface Parts of the UI which don't fall neatly under other labels. and removed Needs Design Feedback Needs general design feedback. labels Jul 3, 2018
@designsimply
Copy link
Member

For reference, here is a screenshot with the CSS example applied:

screen shot 2018-07-03 at tue jul 3 3 44 08 pm
Seen at http://alittletestblog.com/wp-admin/post-new.php?gutenberg-demo running WordPress 4.9.6 and Gutenberg 3.1.1 using Chrome 67.0.3396.87 on macOS 10.13.5.

@designsimply
Copy link
Member

Closing in favor of #7686 since it has screenshots and a more descriptive title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants