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

Menu design upgrade #20898

Merged
merged 2 commits into from Feb 7, 2023
Merged

Menu design upgrade #20898

merged 2 commits into from Feb 7, 2023

Conversation

valentinpalkovic
Copy link
Contributor

@valentinpalkovic valentinpalkovic commented Feb 2, 2023

Resolves: #20897

What I did

  1. Icons are always on the left. If there is one icon in a menu item, every other menu item will have an indent to match the space of the icon as seen in the Storybook menu.
  2. If there are no icons, the item label is not indented.
  3. There is a node on the right of each menu item that can be populated with keyboard shortcuts, illustrations, etc.
  4. Active items will be both bold and blue. Only in the main menu they are denoted with a checkmark
  5. There will be an optional description text node that will be below the item label.
  6. Keyboard shortcuts will list all commands in one container.
  7. The decorative menu tooltip arrows are no longer shown.

image

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@valentinpalkovic valentinpalkovic self-assigned this Feb 2, 2023
@valentinpalkovic valentinpalkovic force-pushed the valentin/menu-design-upgrade branch 3 times, most recently from 8c157e1 to 58399ba Compare February 3, 2023 09:10
Base automatically changed from valentin/ui-improvements to next February 3, 2023 14:44
@valentinpalkovic valentinpalkovic force-pushed the valentin/menu-design-upgrade branch 3 times, most recently from 172d13f to 2099b56 Compare February 3, 2023 15:23
Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! There are some changes requested in Chromatic though, please check them out.

@MichaelArestad did we want to account for RTL? Because it believe it does not

@MichaelArestad
Copy link
Contributor

did we want to account for RTL? Because it believe it does not

@yannbf That's a good question. Does Storybook itself account for RTL (sidebar switching sides, etc)?

1. Icons are always on the left. If there is one icon in a menu item, every other menu item will have an indent to match the space of the icon as seen in the Storybook menu.
2. If there are no icons, the item label is not indented.
3. There is a node on the right of each menu item that can be populated with keyboard shortcuts, illustrations, etc.
4. Active items (denoted with a checkmark) will be both bold and blue.
5. There will be an optional `description` text node that will be below the item label.
6. Keyboard shortcuts will list all commands in one container.
7. The decorative menu tooltip arrows are no longer shown.
@valentinpalkovic valentinpalkovic force-pushed the valentin/menu-design-upgrade branch 2 times, most recently from e6b9c0f to 9ebb8fe Compare February 6, 2023 16:07
@yannbf
Copy link
Member

yannbf commented Feb 6, 2023

did we want to account for RTL? Because it believe it does not

@yannbf That's a good question. Does Storybook itself account for RTL (sidebar switching sides, etc)?

For the most part, yes:
image

You can do document.dir = 'rtl' in dev tools to get that effect

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

Successfully merging this pull request may close these issues.

Menu design update
3 participants