Conversation
Nice work!! 🔥
I'd just make the whole dropdown component include a with a vanilla html Here's some points on the code itself (couldn't inline my comments as Github seems to have some service outage atm):
In |
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.
Getting close!! 🌟
As for next steps: For the sake of keeping things moving fast, I would suggest we narrow the scope this PR to just making this a generic dropdown menu component and adding it to the design system guide. Then we can follow up with another PR for the specific use-cases (top bar, project and member lists) and the copy-to-clipboard functionality.
* Generalize ProjectTopbar to Topbar * Fix hover on MenuItems * Add additional actions button & modal
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.
It's coming together! 🎉
Besides the inline comments:
- can we automatically close the dropdown menu once something is clicked?
- clicking outside of the modal to close it works only if I click above the menu, if I click on either side or below it doesn't close, is there an easy fix?
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.
Great work!
Added a few small comments.
public/colors.css
Outdated
@@ -27,6 +27,7 @@ | |||
--color-lightgray-tint-10: #e9edf1; | |||
--color-lightgray: #ced8e1; | |||
--color-lightgray-shade-10: #b3c3d1; | |||
--color-light-shadow-gray: rgba(51, 51, 51, 0.08); |
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.
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.
color.css
will be overwritten once you run yarn generate:colors
the next time. I would put it in general.css
for now, but maybe write an issue in the Housekeeping milestone to include transparent colors in the color generation.
public/colors.css
Outdated
@@ -27,6 +27,7 @@ | |||
--color-lightgray-tint-10: #e9edf1; | |||
--color-lightgray: #ced8e1; | |||
--color-lightgray-shade-10: #b3c3d1; | |||
--color-light-shadow-gray: rgba(51, 51, 51, 0.08); |
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.
colors.css
is auto-generated and will be overwritten next time someone runs yarn generate:colors
.
Let's put this CSS variable in public/global.css
for now.
I also think --color-lightgray-transparency-08
would better fit our current naming scheme.
@@ -48,9 +49,11 @@ | |||
right: 0; | |||
width: 240px; | |||
margin-top: 15px; | |||
background-color: white; | |||
box-shadow: 0px 4px 8px rgba(51, 51, 51, 0.08); |
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.
Could you also use the variable here: https://github.com/radicle-dev/radicle-upstream/blob/master/ui/DesignSystem/Component/Sidebar.svelte#L90 while at it?
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 🚀
Fixes #193 & #194
ProjectTopbar
(& associatedMenu
) intoTopbar
that can be used in other contextsMenu
buttons (icons were turning purple but text was not)AdditionalActionsDropdown
to Design System Guide: