fix: add background to share code avatar#19883
Conversation
|
@madmax330 @rushatgabhane One of you needs to 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] |
| size={props.size} | ||
| logo={props.logo} | ||
| logoBackgroundColor="transparent" | ||
| logoBackgroundColor={colors.greenIcons} |
There was a problem hiding this comment.
@allroundexperts don't import colors directly.
Use theme
There was a problem hiding this comment.
And why are we using this specific green color? Shouldn't it be dark green?
There was a problem hiding this comment.
Used theme now.
This colour is the same being used in Avatars elsewhere.
|
Bump @rushatgabhane 😅 |
Reviewer Checklist
Screenshots/Videos |
rushatgabhane
left a comment
There was a problem hiding this comment.
@madmax330 LGTM!
@allroundexperts sorry i was out sick and couldn't review it in time!
|
✋ 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/madmax330 in version: 1.3.26-0 🚀
|
|
I think possible bug is identified, and this should not be deployed to production https://expensify.slack.com/archives/C049HHMV9SM/p1686247175943009 |
@alitoshmatov Please read the above discussion. It was decided to use the background which we're using at other places such as in settings page / chat rooms. |
|
I have also worked on this earlier, and I am pretty sure these were not supposed be like this.
|
|
I agree, any idea what happened? |
|
We decided to use a background fill behind transparent PNG avatars, but that is different form the background/border color of the logo here. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀
|
|
|
||
| /** | ||
| * The QRCode logo background color | ||
| */ | ||
| logoBackgroundColor: PropTypes.string, |
There was a problem hiding this comment.
Why did we introduce this prop if we don't use it anywhere. 🤷








Details
This PR adds a background that appears below the avatar on the share code component.
Fixed Issues
$ #19569
PROPOSAL: #19569 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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