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

NavigationMenuItem: Close dropdown once option selected. #18309

Closed
retrofox opened this issue Nov 6, 2019 · 9 comments
Closed

NavigationMenuItem: Close dropdown once option selected. #18309

retrofox opened this issue Nov 6, 2019 · 9 comments
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.

Comments

@retrofox
Copy link
Contributor

retrofox commented Nov 6, 2019

There's no way to close the dropdown once options are selected except for clicking outside or pressing Esc. Perhaps a close button would be useful?

@retrofox retrofox added [Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. labels Nov 6, 2019
@tellthemachines
Copy link
Contributor

tellthemachines commented Nov 13, 2019

@retrofox I'm not sure if this issue refers to the link selection dropdown (because we previously discussed the same issue happening with the colour palette dropdown) but it's certainly happening there, so I'm attaching a screenshot of it for clarity:

Screen Shot 2019-11-13 at 11 08 52 am

Feel free to edit this or add more info if you were referring to another dropdown!

Edit: This component also doesn't close on click outside on any Windows browser (tested on Windows 10 with IE11, Chrome and Firefox).

@karmatosed
Copy link
Member

I explored this a bit, my concern though is we are getting to that situation of 2 things close together even we stagger this:

closing

@shaunandrews
Copy link
Contributor

image

We could try moving the "Change" button down to its own line. Also shown on the right is an idea of making the popover narrower when the Link Title and URL are shorter — but grow as needed.

@karmatosed
Copy link
Member

@shaunandrews that seems like a reasonable middle ground, going to remove design feedback label and let's go with that for now.

@karmatosed karmatosed removed the Needs Design Feedback Needs general design feedback. label Dec 10, 2019
@getdave
Copy link
Contributor

getdave commented Jan 7, 2020

I agree we need this, but (personal opinion alert!) the visuals look a lot less elegant to me now that the Change button isn't on the right hand side.

Without the X icon breaking outside the boundaries of the popover (which I assume would be outside design style guide) I don't see any other option however.

Also noting that Google docs doesn't have a close button so just confidence checking that we definitely need to do this...

@WunderBart
Copy link
Member

WunderBart commented Jan 7, 2020

I second @getdave's opinion - not sure if we definitely need this.

Regarding closing via ESC - it actually doesn't work in the following scenario:

  1. Click ⊕ to add new nav item,
  2. Define a URL and press enter,
  3. The popup should remain open showing the created link details but will go out of focus (?) and won't be closable by ESC,
  4. Press TAB to bring one of popup's elements to focus and then ESC to close the popup.

Does that sound like something that could be addressed within this issue? Happy to create another issue otherwise.

@shaunandrews
Copy link
Contributor

Seems like #19481 could be related.

@tellthemachines
Copy link
Contributor

Is this still needed now that the dropdown closes itself on link selection?

@draganescu draganescu assigned draganescu and unassigned draganescu Mar 23, 2020
@draganescu
Copy link
Contributor

Hi @tellthemachines from my testing this does not feel like a need anymore. I will close this but pinging @shaunandrews for second opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

7 participants