Repository navigation
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 |
| </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.
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.
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.
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.
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.
textXXXLargeWLineHeight is over-riding the line height defined inside textHeadline. This is what I meant.
There was a problem hiding this comment.
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.
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. |
allroundexperts
left a comment
There was a problem hiding this comment.
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 👀 |
deetergp
left a comment
There was a problem hiding this comment.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android