-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat(design-system): add dropdown menu component and stories #2522
Conversation
ea158ff
to
d3fecd3
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.
i think there's a slight error on behaviour - both the menu button + options "shrink" when you hover over them. i think this is because there's a change in border size, which leads to the component resizing.
also, i can't seem to tab target the options + options have border on |
004c718
to
fd6b183
Compare
for options, they can be selected using arrow keys instead of tab - as per aria specs also fixed the css for options |
Note that design has clarified that theming for dropdown menu is different from dropdown field (see form design system) |
fd6b183
to
941d7a1
Compare
Thanks both! I've edited it to use the existing Button theming |
99204e7
to
9f74cce
Compare
@karrui have confirmed the designs with pearly, for your re-review! |
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.
some styling still looks off, but i'll leave that to @pearlyong, codewide looks fine
edit: might need to merge in form-v2/develop into this branch, seems to have some leftover ci/cd conflicts
9f74cce
to
24d74c2
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.
can we also stick to a single naming convention pls - either Menu
or DropdownMenu
? it's confusing that everything is named after the parent folder except this. (noticed because I'm using this for Datepicker haha)
24d74c2
to
9e8e632
Compare
8f77dc4
to
8ff96a9
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.
lgtm with nits
Features:
Before & After Screenshots
In storybook