-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade "Item" component #22
Comments
Yes, both are good additions. Would the frame variant get messy if we add more states (hover, selected, disabled, etc)? Similar discussion to the button whether to pack lots into the same component or have many simpler components. A note about the We have a lot of screens where the user picks a contact for a transaction. Sometimes it's empty, sometimes all we have to show is an on-chain address, etc. When designing screens, I have found this intermediate layer to be super helpful. It's great, because then you don't need to dig up a sample on-chain address from somewhere online, but you just need to pick the variant. Not sure if that affects anything you suggested, but thought I'd mention it. |
I think we can keep everything as it is, but adding the nested instances, which doesn't change the structure of the component itself. With adding simply the "frame" as a variant it neither would make things messier IF we would add new states to the framed version, we would of course add some complexity, but a solution could be to create some kind of "card" element, which is reused for all elements that are "framed". I could build that in a duplicated page, to show exactly what I mean, would that make sense? |
That's a great idea. Before fixed positions, it was impossible to have frames as separate components, but should be doable now. Would love to see what you come up with. |
Ok! Optimized and fixed the Item component: |
Looks awesome! I noticed a few details I'd like to tweak, I'll leave comments in Figma before doing anything. Another task now is to update all instances of the previous Item component with this new one. Easiest approach might be to go page by page and use the Another thing then is also to update components that are essentially a series of states of the |
Issue 1
As a UI kit user, I would love to change the states of the nested components easily, when I use the "item" component.
Now it's complicated, since one need to dig into the component to change the toggle state for example.
See image:
We could change this, with "nested instances".
See image:
Issue 2
As a UI kit user, I would like to toggle the frame of the "Item" Component on and off, easily."
Now I need to replace the whole component:
It would be easily fixed with a component variant:
Frame true/false
The text was updated successfully, but these errors were encountered: