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

UI/UX: Inconsistent patterns for active/selected control colors #19904

Closed
richtabor opened this issue Jan 26, 2020 · 5 comments
Closed

UI/UX: Inconsistent patterns for active/selected control colors #19904

richtabor opened this issue Jan 26, 2020 · 5 comments
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Design Needs design efforts.

Comments

@richtabor
Copy link
Member

richtabor commented Jan 26, 2020

Just starting a conversation around developing a consistent active/selected color for controls primarily within the Settings Sidebar/InspectorControls.

For active/selected button states within InspectorControls regions, should folks be employing the editor's primary color? Or perhaps the dark gray color that is used on the Setting Sidebar button and within the HeadingToolbar? While G2 is looking good, we can work to establish a pattern now - that will be naturally adopted into G2. We briefly discussed this in the Slack #design channel.

Looking through our current UI, here are a few variants of active/selected states that are employed today (screenshots below).

A. Settings Sidebar button

Uses a dark gray color for the active/selected state.

Screen Shot 2020-01-26 at 5 32 40 PM

--

B. Heading block HeadingToolbar

Also uses a dark gray color for the active/selected state:

Screen Shot 2020-01-26 at 5 33 41 PM

--

C. Image dimensions ButtonGroup

Uses the primary theme color (blue in this case) to signify a selected button within the group:

Screen Shot 2020-01-26 at 5 34 52 PM

--

D. ToggleControl

This example is from the Paragraph block. Note that the control utilizes a different blue in the default theme:

Screen Shot 2020-01-26 at 5 36 02 PM

--

E. Gradient tabs

Here's a ButtonGroup that is utilizing secondary and primary button styles (primary signifying the active tab):

Screen Shot 2020-01-26 at 5 56 57 PM

--

F. Radio/Checkbox controls

Screen Shot 2020-01-26 at 6 02 45 PM

--

G. Third party blocks/controls

This is an example from a CoBlocks block utilizing the ButtonGroup component with primary and secondary button styles.

Screen Shot 2020-01-24 at 11 35 15 AM

--

After reviewing the different cases, an applied standard would be nice here - again, one that we could roll right into G2. I could be convinced either way if active states should be using the primary color, or the (currently) darker gray color - though I lean towards a color that is not so heavy - simplifying the UI - rather than flashing color. And we're not signifying a primary action (whereas the "Publish/Update" does) - but instead identifying a selection.

Thoughts?

@richtabor richtabor added the Needs Design Feedback Needs general design feedback. label Jan 26, 2020
@karmatosed
Copy link
Member

What a great deep dive @richtabor, let me loop in @jasmussen as there certainly is some connecting work here with the iterations on interface going on.

@jasmussen
Copy link
Contributor

For active/selected button states within InspectorControls regions, should folks be employing the editor's primary color? Or perhaps the dark gray color that is used on the Setting Sidebar button and within the HeadingToolbar? While G2 is looking good, we can work to establish a pattern now - that will be naturally adopted into G2. We briefly discussed this in the Slack #design channel.

Delightful question to be asking, and one that, as you allude to, the G2 efforts have tried to address. In that design, the treatment for a toggled state is a (very) dark background. The two exceptions are the Switch control, and the Checkbox control, both of which use the theme color.

It would be only reasonable to explore those with the UI we have today, to help inform it and shape it. In that vein, what would it look like if we employed the same gray inversion/toggled state across the elements you mention? In my minds eye, it surfaces some design challenges with how buttons look after the latest iteration. While the stronger focus styles are helpful, the blue border and gray material inside has not worked as well. In exploring the dark gray toggled state, we may need to look also at how secondary buttons look.

@mapk mapk added Needs Design Needs design efforts. Good First Issue An issue that's suitable for someone looking to contribute for the first time and removed Needs Design Feedback Needs general design feedback. labels May 5, 2020
@richtabor
Copy link
Member Author

We should add the ResizableBox handles to this as well, as they're using a different color blue than the current G2 primary color.

Screen Shot 2020-06-01 at 2 02 44 PM

The handles are using theme(primary) whereas the primary blue buttons are using theme(button) shade(6%). Source: https://github.com/WordPress/gutenberg/blob/0552712059ac5519fad0aeab6dddc5b84f049192/packages/components/src/button/style.scss#L25`

@jasmussen
Copy link
Contributor

We should add the ResizableBox handles to this as well, as they're using a different color blue than the current G2 primary color.

😱

I have to fix this. Thank you for bringing it to my attention. I hope to get to this soon.

@jasmussen
Copy link
Contributor

@richtabor I'm taking a look at a few of these items here today, but it appears this one, #19904 (comment), might have been fixed.

Looking at the latest version of the button style in https://github.com/WordPress/gutenberg/blob/master/packages/components/src/button/style.scss#L45 it uses the same $theme-color as the resize handles do. If I'm missing something, happy to fix, otherwise I'll assume this one is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time Needs Design Needs design efforts.
Projects
None yet
Development

No branches or pull requests

4 participants