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

Visual cue in command palette when the command is run #1095

Open
jasongrout opened this issue Oct 14, 2016 · 12 comments
Open

Visual cue in command palette when the command is run #1095

jasongrout opened this issue Oct 14, 2016 · 12 comments

Comments

@jasongrout
Copy link
Contributor

I think there should be a visual cue in the command palette indicating when a command is run from the palette. For example, we could blink the command name once or twice, or blink the highlight around the command.

As it is now, if the command doesn't cause a discernible difference in the UI, it's hard to know if we actually ran the command.

Menu items in OS X work this way - executing on a menu item blinks the blue bar highlight off and then back on.

See also #447 where this was discussed earlier.

@ellisonbg
Copy link
Contributor

+1. Maybe a loud sound as well (LOL, JK) ;-)

@jzf2101
Copy link
Contributor

jzf2101 commented Aug 15, 2017

@cameronoelsen do you think we could leave this as sprint-friendly?

@tgeorgeux
Copy link
Contributor

I think there are three good options to pursue here.

  1. A ripple effect like mac uses (if we use this method, we should also update similar interactions, such as the file menu, and the cell type selector in a notebook).
    ezgif com-video-to-gif

  2. We could treat it like we treat other buttons. With a hover of Layout Color 2 and switch to layout color 3 on active. (This solution is easiest, has the least impact on existing design.)

  3. We could implement the Material Design 'Ripple Effect.' This option is ideal if we decide to add ripple effects to all the buttons (which to this point we have avoided.)

My advice is option 2 for the lowest impact, and highest consistency with our existing design.

@jasongrout
Copy link
Contributor Author

@lheagy and I tracked this down to phosphor. We think that phosphor itself should probably add an "executing" class to the item being executed in https://github.com/phosphorjs/phosphor/blob/483118db255fea3ba4ec8fb82d4eb4620282def0/packages/widgets/src/commandpalette.ts#L427-L461, and leave it up to the application to provide css that will do, say, a css transition to blink the item or something. At some point phosphor should remove the class too - perhaps phosphor should just say that the class is added for at least 200ms (using setTimeout), and it's up to the app to make sure the transition completes in that time.

@jasongrout
Copy link
Contributor Author

Probably the same thing should be done for phosphor menus as well.

@ellisonbg
Copy link
Contributor

ellisonbg commented Dec 4, 2018 via email

@tgeorgeux
Copy link
Contributor

I referenced a solution in #279 I think the solution for now is to blink layout color 3 on activate. In the menu and in the command palette.

@jasongrout jasongrout modified the milestones: 1.0, Future Jan 25, 2019
@jasongrout
Copy link
Contributor Author

Setting this to Future, since it likely requires changes to Phosphor.

@saulshanabrook
Copy link
Member

@jasongrout @tgeorgeux @ellisonbg I just added a fix for a related issue that makes the active command darker on hover: #6407

Do any of you think this is still 1.0 priority after that fix is in? If so, @jasongrout do you still believe the fix here would be down in phosphor?

@jasongrout
Copy link
Contributor Author

@tgeorgeux - you set it back to 1.0 in our triage. Do you think this is still a 1.0 issue after #6407?

@tgeorgeux
Copy link
Contributor

tgeorgeux commented May 24, 2019

I am OK with pushing it back to phosphor if we've fixed the hover issue. I moved to 1.1 as this should be a priority to fix in Phosphor, it will impact the experience enough that it should be prioritized.

@tgeorgeux tgeorgeux modified the milestones: 1.0, 1.1 May 24, 2019
@blink1073 blink1073 modified the milestones: 1.1, 1.2 Aug 27, 2019
@jasongrout jasongrout modified the milestones: 1.2, 2.0 Oct 11, 2019
@jasongrout jasongrout modified the milestones: 2.0, Future Dec 2, 2019
@tonyfast
Copy link
Contributor

tonyfast commented Dec 4, 2020

i'm not sure if this an accessibility issue, it seems more design specific. the audit in #9399 likely covers some of these status considerations for different readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment