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

Consider select state with background color change on toolbars #21814

Closed
karmatosed opened this issue Apr 23, 2020 · 3 comments
Closed

Consider select state with background color change on toolbars #21814

karmatosed opened this issue Apr 23, 2020 · 3 comments
Labels
Needs Design Feedback Needs general design feedback.

Comments

@karmatosed
Copy link
Member

The current implementation of select state on inner toolbars, for example with bold styling, is to have a background color:

image

I think bringing this also into the block top toolbar makes sense:

1

This was a point in discussion with @jasmussen in #21727 and I said there I'd create this issue. I'd be keen to discuss if this makes sense for people as a toolbar selected state, no matter where the toolbar is within the block.

@karmatosed karmatosed added the Needs Design Feedback Needs general design feedback. label Apr 23, 2020
@jasmussen
Copy link
Contributor

Thanks for the ticket. Let me just be sure I understand things right because there may be nuance I missed.

There's a toggled state, and there's a "dropdown is open" state. In the case of the line tools with bold and italic, you select something, make it bold, and so long as the caret is in bold text, you see the bold button toggled -- which is dark and inverted.

In the example you show the alignments is highlighted/toggled -- was it meant to indicate that this menu is also "open"? Because if yes, then I'd ambiguate between those two. See the following:

Screenshot 2020-04-23 at 12 33 59

In this case, the Wide alignment is chosen for the cover block, and is correctly shown as toggled (dark, inverted). The dropdown is also shown as opened, which at the moment is indicated with a blue icon color. This color change is a little subtle, so the thought I had was whether there were different treatments to showing this menu as being open.

One option is to not change the blue color at all and just rely on what has focus and geographic spacing to indicate where you are. But I'd avoid mixing in the dark/inverted "toggled" state with "dropdown is open" state.

@karmatosed
Copy link
Member Author

One option is to not change the blue color at all and just rely on what has focus and geographic spacing to indicate where you are. But I'd avoid mixing in the dark/inverted "toggled" state with "dropdown is open" state.

I sort of was thinking of the 'something is set' being an indicator. A balance might yes then be to not change the blue color and rely on focus. I feel that clears up some confusion.

@mapk
Copy link
Contributor

mapk commented May 4, 2020

I'm still trying to understand the various design decisions in G2, so I'm glad this was surfaced. Thanks for the discussion. It looks like it was intentional, and appears to work well in multiple places, so I'll close this one out.

@mapk mapk closed this as completed May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

No branches or pull requests

3 participants