flame icon indicating copy to clipboard operation
flame copied to clipboard

Add more standardized menu for dropdown

Open inooid opened this issue 6 years ago • 1 comments

Description

Currently the dropdown components (and sub components) make it possible to render anything within the "popped out" box, but this gives us consumers a lot of freedom. I would like to see some more guidance in how to render these dropdown lists.

How about a DropdownList or DropdownMenu component that is just a styled ul and li list?

Requirements

  • Don't narrow down the API of the dropdown component itself, people should still be allowed to render things above or below the list.
  • Standardise the way we create context menus

Design/Examples

Currently within the Lightspeed products, we've seen some context menus being used within the sidebar:

image

But also in our some other places:

image

Both of these designs already show and proof that the implementations are going all over the place, while they're pretty similar.

inooid avatar Oct 21 '19 13:10 inooid

Can only think of these 2 for now, perhaps scope creep and remove that dotted like when a button is focused :creeper:

Vendor Return

image

Filters on RR

image

tombertrand avatar Oct 22 '19 14:10 tombertrand