-
Notifications
You must be signed in to change notification settings - Fork 3k
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: The background of fallback avatar has the same color as selection highlight #39950
Conversation
@Santhosh-Sellavel 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] |
Just to make sure I'm on the same page, are we applying this color change to all fallback avatars? cc @grgia as I think you are working on those as well, and cc @Expensify/design for thoughts as well I like the idea of picking one color that works everywhere, and just sticking to it for all cases (hovered, selected, not hovered, etc). It seems like button hover ( |
Yeah this is appealing to me too so we can basically set it and forget it. But what's shown in this PR also is looking nice. I'll let Jon weigh in too since he was heading up the fallback avatars from the design side. |
Yeah, I agree that what's shown in this PR looks good 👍 |
Cool, what do you think about that @grgia ? That would mean changing all fallback avatars to use |
@shawnborton to be clear we want to use https://github.com/Expensify/App/blob/main/src/components/Avatar.tsx#L93-L94 In that case, @tienifr we'd need to modify this line instead |
That's my thinking, yup! Does that impact the work you are doing in your fallback PR, or was that merged already? |
@grgia Can you help check the comment above? Thanks |
@tienifr it's been merged already |
Can we continue with review here? |
@grgia What's next step here? |
@grgia @shawnborton I can't find |
@tienifr yes its buttonHoveredBG (colors.productDark500, colors.productLight500) |
@grgia I updated the PR. We're good to go |
@tienifr Can you screens for other platforms too? |
Reviewer Checklist
Screenshots/Videos |
@Santhosh-Sellavel I updated |
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.
LGTM, thanks!
✋ 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 production by https://github.com/mountiny in version: 1.4.64-6 🚀
|
Details
Fixed Issues
$ #39909
PROPOSAL: #39909 (comment)
Tests
Offline tests
Same as above
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 methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop