-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Menu design upgrade #20898
Conversation
8c157e1
to
58399ba
Compare
172d13f
to
2099b56
Compare
2099b56
to
eb751fd
Compare
There was a problem hiding this 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
@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.
e6b9c0f
to
9ebb8fe
Compare
You can do |
9ebb8fe
to
7820ac7
Compare
7820ac7
to
882330a
Compare
Resolves: #20897
What I did
description
text node that will be below the item label.How to test
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]