Gutenberg: Merge background and text color panels

Created on 18 Apr 2018  路  13Comments  路  Source: WordPress/gutenberg

If we merged these we would make a panel that applied to all coloring. It would also result in a better experience where right now the a11y check appears to float not connected on text coloring.

Props to @megsfulton for discovering the color check issue and prompting this.

Good First Issue [Feature] Blocks [Status] In Progress [Type] Enhancement

All 13 comments

If I'm understanding correctly, we discussed this in #2381, particularly merging the two here. Hope that context is helpful.

@nic-bertino slightly different, but thanks for adding and that issue was great as we got to get to where we are now. This idea is about bringing them both together into one panel, but having 2 options. Not the merging totally.

If something like border color, box shadow, or text shadow options were added to the core blocks, would they appear in the same panel as the text and background color options?

@SuperGeniusZeb it depends, I am not sure right now adding those would be a good option.

Here is what merging could look like. I think this does give us options for the future and aligns more with 'Text Settings' for example.

colorcombo

This means we lose the color shown next to the panel title. I'm fine with that, just confirming that's what we want.

Also, from another perspective, isn't text color technically a "Text Setting"? And background color options could also be grouped with other background settings, like background images and background gradients. Of course, if non-solid-color background options are not added to any core blocks, it may make more sense to group color options into a single panel.

Additionally, will the Paragraph block even still have background color options when the Section block is added?

This means we lose the color shown next to the panel title. I'm fine with that, just confirming that's what we want.

That's a great point, let's have 2 states for that. When closed it can show beside and when open it can show beside each relevant section:

artboard

That looks nice, but what happens when I click on one of those colours? They look directly clickable, but I'd imagine what clicking anywhere there will actually do is expand the panel.

Other sections don't show extras when hidden like that, so that seems like an inconsistent design choice.

We should remove the colours from the unexpanded header.

Otherwise looks nice though. 馃憤

That looks nice, but what happens when I click on one of those colours? They look directly clickable, but I'd imagine what clicking anywhere there will actually do is expand the panel.

They click the same way they do right now.

We should remove the colours from the unexpanded header.

I don't agree there, we can see the colors just like we do now in unexpanded. Colors is already a feature and conscious design decision, you can see here already in Gutenberg:

2018-05-29 at 16 32

Oh, cool, okay, I missed that. Ignore me then, I'm very green. 馃槄

This is an excellent issue to get started with Gutenberg for anyone who likes challenges 馃

Tested and confirmed that the Paragraph Block options for Background Color and Text Color are not yet combined. Adding a screenshot for reference:

screen shot 2018-06-25 at mon jun 25 3 51 15 pm
Seen at http://alittletestblog.com/wp-admin/post.php?post=13830&action=edit using WordPress 4.9.6 and Gutenberg 3.1.0 with Firefox 60.0.2 on macOS 10.13.5.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maddisondesigns picture maddisondesigns  路  3Comments

jasmussen picture jasmussen  路  3Comments

jasmussen picture jasmussen  路  3Comments

ellatrix picture ellatrix  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments