-
Notifications
You must be signed in to change notification settings - Fork 29
Qa checklist updates #57
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
Conversation
|
Preview uploaded to https://preview.dashboard.test.threshold.network/qa-checklist-updates/index.html. |
| fontSize="60px" | ||
| lineHeight="64px" |
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 believe we should use relative units not fixed eg. px. Eg. the screen size changes, the text still has 60px but should be smaller. So we should probably use the object syntax or the array syntax to provide responsive styles.
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 agree but we don't have designs for how each typography element should adjust at different breakpoints. I think we should ticket this out for later. We can have Liz and Sasha come up with the sizes they want and add the responsive values in a future PR. What do you think?
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.
started a discussion here: https://discord.com/channels/893441201628405760/935221615455789076/935221617498411079
| <Body2 paddingRight={8}>{heroText}</Body2> | ||
| <> | ||
| <Body2>{heroText1}</Body2> | ||
| <Body2>{heroText2}</Body2> | ||
| </> | ||
| ) : ( | ||
| <H4 maxW="500px">{heroText}</H4> | ||
| <Stack maxW="450px" justify="center"> | ||
| <H4>{heroText1}</H4> | ||
| <H4 noOfLines={2}>{heroText2}</H4> | ||
| </Stack> |
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 if we set the responsive styles correctly (please see comment above) we will avoid conditional rendering for mobile.
src/components/TokenBalance.tsx
Outdated
| {isLarge ? ( | ||
| <H3 {...restProps}> | ||
| {shouldRenderTokenAmount ? _tokenAmount : "--"} | ||
| </H3> | ||
| ) : ( | ||
| <H5 {...restProps}> | ||
| {shouldRenderTokenAmount ? _tokenAmount : "--"} | ||
| </H5> | ||
| )} | ||
| {withSymbol && | ||
| tokenSymbol && | ||
| (isLarge ? ( | ||
| <Body1 alignSelf="center">{tokenSymbol}</Body1> | ||
| ) : ( | ||
| <Body3 alignSelf="center">{tokenSymbol}</Body3> | ||
| ))} |
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.
Same as above.
| {/* exchange rate link */} | ||
| <HStack justify="center" mt={4}> | ||
| <ExternalLink | ||
| as="p" |
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.
why as="p"?
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.
Good point I think this is just a copy/paste issue. I've updated.
|
Preview uploaded to https://preview.dashboard.test.threshold.network/qa-checklist-updates/index.html. |
Updates based on:
https://coda.io/d/Building-Keep_d-fmEgBNFVH/Functional-and-Visual-QA-2022-21-01_suBPC#_luA8E
https://coda.io/d/Building-Keep_d-fmEgBNFVH/T-Migration-Threshold-side_suqpx#_luWi-