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

Merge background and text color panels #6255

Closed
karmatosed opened this issue Apr 18, 2018 · 13 comments · Fixed by #7924
Closed

Merge background and text color panels #6255

karmatosed opened this issue Apr 18, 2018 · 13 comments · Fixed by #7924
Assignees
Labels
[Feature] Blocks Overall functionality of blocks Good First Issue An issue that's suitable for someone looking to contribute for the first time [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Milestone

Comments

@karmatosed
Copy link
Member

karmatosed commented Apr 18, 2018

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.

@karmatosed karmatosed added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks Needs Design Needs design efforts. labels Apr 18, 2018
@nic-bertino
Copy link

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

@karmatosed
Copy link
Member Author

@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.

@ZebulanStanphill
Copy link
Member

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?

@karmatosed
Copy link
Member Author

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

@karmatosed
Copy link
Member Author

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

@karmatosed karmatosed added Needs Design Feedback Needs general design feedback. Needs Dev Ready for, and needs developer efforts and removed Needs Design Needs design efforts. Needs Design Feedback Needs general design feedback. labels Apr 24, 2018
@karmatosed karmatosed added this to the Merge Proposal: Editor milestone Apr 27, 2018
@karmatosed karmatosed removed the [Type] Enhancement A suggestion for improvement. label Apr 27, 2018
@youknowriad
Copy link
Contributor

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

@ZebulanStanphill
Copy link
Member

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?

@karmatosed
Copy link
Member Author

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

@tofumatt
Copy link
Member

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. 👍

@karmatosed
Copy link
Member Author

karmatosed commented May 29, 2018

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

@tofumatt
Copy link
Member

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

@karmatosed karmatosed modified the milestones: Merge Proposal: Editor, 3.1 Jun 2, 2018
@gziolo gziolo modified the milestones: 3.1, 3.2 Jun 19, 2018
@gziolo gziolo added the Good First Issue An issue that's suitable for someone looking to contribute for the first time label Jun 19, 2018
@gziolo
Copy link
Member

gziolo commented Jun 19, 2018

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

@mtias mtias removed this from the 3.2 milestone Jun 22, 2018
@designsimply
Copy link
Member

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.

@designsimply designsimply added the [Type] Enhancement A suggestion for improvement. label Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks Good First Issue An issue that's suitable for someone looking to contribute for the first time [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet