Skip to content
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(frontend): ConvertAmountSource component #3586

Open
wants to merge 2 commits into
base: feat(frontend)/convert-amount-source
Choose a base branch
from

Conversation

DenysKarmazynDFINITY
Copy link
Contributor

Motivation

Component for handling source token amount input and all related information appearance.

Desktop:
Screenshot 2024-11-15 at 13 49 33

Mobile:
Screenshot 2024-11-15 at 13 49 41

@DenysKarmazynDFINITY DenysKarmazynDFINITY requested a review from a team as a code owner November 15, 2024 12:51

<button
slot="balance"
class={`rounded px-2 py-0.5 ${isZeroBalance ? 'bg-error-subtle-alt text-error' : 'bg-zumthor text-blue-ribbon'}`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think that both zumthor and blue-ribbon can be replaced with the new colors

blue ribbon is text-brand-primary, and the other bg-brand-subtle (please double check)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, updated!

<button
slot="balance"
class={`rounded px-2 py-0.5 ${isZeroBalance ? 'bg-error-subtle-alt text-error' : 'bg-zumthor text-blue-ribbon'}`}
on:click|preventDefault={setMax}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need preventDefault? we do the same elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, same as with max button in the send flow - since we don't have a button with type=submit, the whole Send/Convert form will be submitted without preventDefault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants