-
Notifications
You must be signed in to change notification settings - Fork 144
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
Design System: Button (and stories) #4418
Comments
@fbwoolf and finally, could you also review this one? I believe it's 90% done? |
I don't think the component should be name here with |
True! Maybe avatar? since icon there are instances of an avatar with an icon inside. |
When I look at Radix, I feel like |
I would keep the name
I don't really understand what In any case, the |
Yes, used to trigger the swaps and possibly send in the future.
Good point.. we could do this - however the icon and token/avatar have different sizes. Considering the new icon package has 24px, avatar/token have 32px, the size of the "button with tokens" is slightly bigger, 48px. Hence, fine to use the |
Yeah, agree with @pete-watters here, I think there is a way to simplify these button variants. I'll rename this issue to handle coordinating all buttons and will propose a solution in a PR where we can make sure to coordinate with Figma if needed for naming, etc. I'll handle making stories for the buttons so we can evaluate them all once done. |
@kyranjamie do you have any thoughts here too as I work on this one to coordinate the buttons with stories? |
I think I share Pete's thoughts. The token/avatar/icon is just a child of the button, not part of the button. So we don't need a specific button component just for this type. Let's just make sure, and provide some examples in Storybook, of how buttons look with tokens/avatars/icons as children?
@mica000 in atomic design speak, the buttons with images in them are molecules composed of atoms (buttons and image) components |
Yep, agree, thanks. |
cc @fabric-8 |
Just a small addition: We'd love to try 48px as a default button heught and see how that'll look overall :) The height is already reflected in the design system button component Also agree that token buttons should really just be a particular ghost button configuration |
@mica000 @fabric-8 just a heads up that the links to Figma in this issue description do not lead to the most up-to-date version. I have been working on this w/out knowing there are more updated designs. I'm not sure how to know as a dev when the links become outdated? I should just make sure to see the |
@fbwoolf whoops thanks for the hint, updated — Mistake on our end and you should generally not have to worry about that. Just happened as the ticket has been created a while ago while we reiterated on the button component later on without updating things here |
## [6.24.0](v6.23.0...v6.24.0) (2024-01-22) ### Features * use radix tooltip ([aa8a530](aa8a530)) ### Bug Fixes * fee estimation error, ref [#4821](#4821) ([9b75521](9b75521)) * home action btns hover state ([c270868](c270868)) * send inscription form fee flow ([ee9728d](ee9728d)) * tooltip logic ([2ae8cf0](2ae8cf0)) ### Internal * audit colours, update token package, brown becomes ink ([c82c612](c82c612)) * button and link, ref [#4418](#4418) and [#4523](#4523) ([7d75f4a](7d75f4a)) * fix icon padding, ref [#4693](#4693) ([fbd8c11](fbd8c11)) * fix validate custom network name field on form submission, closes [#4737](#4737) ([63e6a94](63e6a94)) * post-release merge back ([0930968](0930968)) * update network tests ([ab1fb5b](ab1fb5b))
EDIT: This issue will now be tracking the coordination of all button variants and creating stories for them.
I believe we already build this on the swap but not sure if we need to improve it
This ticket for the button with tokens, used for swaps.
I believe we already build this on the swap but not sure if we need to improve it?
These are the states on designs
Default, Hover, Active, Focused, Disabled
The text was updated successfully, but these errors were encountered: