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

New Menu Component - Design Guideline​ #55

Open
hwangdev97 opened this issue Aug 22, 2023 · 0 comments
Open

New Menu Component - Design Guideline​ #55

hwangdev97 opened this issue Aug 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request ui-style Only for management purpose.
Milestone

Comments

@hwangdev97
Copy link
Member

hwangdev97 commented Aug 22, 2023

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 hwangdev97 self-assigned this Aug 22, 2023
@himself65 himself65 transferred this issue from toeverything/AFFiNE Aug 22, 2023
@xell xell added ui-style Only for management purpose. enhancement New feature or request labels Aug 24, 2023
@xell xell added this to the AFFiNE 0.9 milestone Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui-style Only for management purpose.
Projects
None yet
Development

No branches or pull requests

2 participants