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

DropdownMenu: Design feedback #50910

Closed
ciampo opened this issue May 24, 2023 · 2 comments · Fixed by #50967
Closed

DropdownMenu: Design feedback #50910

ciampo opened this issue May 24, 2023 · 2 comments · Fixed by #50967
Assignees

Comments

@ciampo
Copy link
Contributor

ciampo commented May 24, 2023

Tracked by #50459

Two little bits of feedback / points of discussion.

From an alignment perspective I feel like the dropdown divider should either align with the content of the menu items or go full width. This is related to our previous conversations about site editor sidebar where menu item hover state has negative margin similar to the examples below.

Mac

image

image

image

Todoist

image

Notion

image

Plain

image

What our site editor sidebar menu's might be

image

Current dropdown

image

The other bit of feedback is around colour of hover state. I would love for us to start standardising around around how colour is used across across different UI states. I like Radix colour system for this reason (see below). In this case we have a hover state for menu items which should be consistent with how we treat hover states in the site editor sidebar (using a lighter gray).

image

so something like this

image

Originally posted by @SaxonF in #50459 (comment)

@ciampo
Copy link
Contributor Author

ciampo commented May 25, 2023

Hey @SaxonF !

From an alignment perspective I feel like the dropdown divider should either align with the content of the menu items or go full width.

I will go full width for now (à la Notion), I think it looks better.

The other bit of feedback is around colour of hover state. [...] In this case we have a hover state for menu items which should be consistent with how we treat hover states in the site editor sidebar (using a lighter gray).

I will change the hover status to gray, although we'd need to also consider:

  • focus state
  • "expanded" state (ie. the state that a subtrigger is in, when its corresponding submenu is open)

I would love for us to start standardising around around how colour is used across across different UI states. I like Radix colour system for this reason (see below).

IMO, this is more about us adopting clear design specs, and less about exactly which library we employ to expose those colors (although we could definitely take inspiration from the guidelines in Radix color).

Finally, I just wanted to note that the design spec that I followed so far while working on DropdownMenu seems to be out of date with the latest guidance provided:

  • blue is used as the hover color
  • separators that neither go full width, nor align with the content

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label May 25, 2023
@ciampo
Copy link
Contributor Author

ciampo commented May 25, 2023

Opened #50967 with the suggested tweaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants