-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Fix 20678] Values cropped on terms and fees page. #21015
[Fix 20678] Values cropped on terms and fees page. #21015
Conversation
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
NOTE: (Future concern)
As of now, this PR fixes only our issue, but I thought it's worth pointing this out. |
@allroundexperts |
@@ -18,7 +20,9 @@ function ShortTermsForm() { | |||
<Text style={styles.textLarge}>{Localize.translateLocal('termsStep.monthlyFee')}</Text> | |||
</View> | |||
<View style={styles.flexRow}> | |||
<Text style={[styles.textHeadline, styles.textXXXLarge]}>{Localize.translateLocal('termsStep.feeAmountZero')}</Text> | |||
<Text style={[styles.textHeadline, styles.textXXXLarge, StyleUtils.getLineHeightStyle(variables.lineHeightXXXLarge)]}> |
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.
Can we create a new style that can be used throughout this component? This is to make sure that we're not repeating ourselves.
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 did that initially, you may check it here, but I changed it after I read these checkboxes:
- If a new CSS style is added I verified that:
- A similar style doesn't already exist
- The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))
Should I go back to using that new style?(if yes, was the naming ok?)
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 this means that you shouldn't create a new style if:
- Similar style exists (which is not the case here clearly)
- The can't be created with an existing StyleUtils function (I don't think you can create this particular combination using StyleUtils)
The commit that you shared above is not exactly what I meant. Instead of over-riding the font size of textHeadline
style, can we create a new style that:
- Has the correct font size in it.
- Has correct line height.
- Has correct font family, colour etc.
- Is named in such a way that its easy to understand and re-use.
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 please check again? The commit does not override the font size of textHeadline
, or anything else.
textXXXLargeWLineHeight
is actually a new style which has the correct fontSize
& lineHeight
in 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.
textXXXLargeWLineHeight
is over-riding the line height defined inside textHeadline
. This is what I meant.
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.
textXXXLarge
was already over-riding the line height, so I was thinking you were referring directly to my changes, sorry, my bad. Did another commit & also merged main with this occasion. Are current changes the desired ones?
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.
Yes. Looks good now!
cc @shawnborton Can you please confirm if the line height is correct in the attached screenshots? |
Reviewer Checklist
Screenshots/Videos |
@DanutGavrus How are you viewing the |
@allroundexperts I tested it with these changes locally: |
Can you update the test steps and mention that we need an account with wallet enabled in order to test this? |
Both Tests & QA Steps updated accordingly. |
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.
Looks good to me!
Waiting on @shawnborton to verify if line height is correct in the screenshots.
@shawnborton A, B, C, D, or other? |
C - 16px looks good to me! |
@shawnborton Done |
All yours @deetergp! |
@deetergp bump for final review 👀 |
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.
Looks good, thanks for the PR!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/deetergp in version: 1.3.31-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.31-3 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.31-3 🚀
|
Details
Some values were cropped in On Terms and Fees page. Created a new style to be used here.
Fixed Issues
$ #20678
PROPOSAL: #20678 (comment)
Tests
Offline tests
Same as Tests Steps.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android