design icon indicating copy to clipboard operation
design copied to clipboard

New Menu Component - Design Guideline​

Open hwangdev97 opened this issue 2 years ago • 0 comments

Description

The "menu" component needs to have the following:

the figma link

Items

1.Base list items:

image

It should support the option to show or hide the following attributes:

  • Drag indicator on the left
  • Left icon
  • Text information
  • Right icon
  • Secondary arrow on the right

It should be able to display different states:

  • Default
  • Hover
  • Selected: Requires two styles, one associated with the right icon.
  • Disabled

Size information:

shot-2023-08-22-18 58 52@2x

2. Title list item

image

The title column defaults to uppercase text.

The title column has:

  • Left icon (usually for returning)
  • Text (default is uppercase)
  • Action button: the action button has a hover state.

Size info:

shot-2023-08-22-19 01 38@2x

3. Divider

shot-2023-08-22-19 02 42@2x

0.5px, default is dividerColor.

4. delete list item

Typically, the delete button should be at the bottom of the list, separated by a divider above it. The hover state for the delete button is red.

shot-2023-08-22-19 03 12@2x

Size info:

shot-2023-08-22-19 04 10@2x

5. Search Item

The style of the search item is relatively independent. Typically, the search item appears at the top of the list, separated by a divider:

shot-2023-08-22-19 13 50@2x

Size info

shot-2023-08-22-19 14 13@2x

6. Input Item

It's basically consistent with the search item. Typically, the input item appears at the top of the list, separated by a divider.

shot-2023-08-22-19 15 00@2x

And input item need support tooltips,only when hover:

shot-2023-08-22-19 21 10@2x

Size info:

shot-2023-08-22-19 17 07@2x

Layout

the layout of menu:

shot-2023-08-22-19 18 55@2x

and the submenu:

shot-2023-08-22-19 19 56@2x

the mini width of menu is 180px

== Check the the figma link ==

hwangdev97 avatar Aug 22 '23 11:08 hwangdev97