-
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
Ensure correct background is present for horizontalStackedAvatar
style
#13351
Conversation
How does this look with multiple workspaces in the row? |
… so that we get the correct overlap effect.
horizontalStackedAvatar
stylehorizontalStackedAvatar
style
Updated to cover that case! Not sure if there is an easier way to do this... but realized we needed to pass the "hover" and "pressed" states so that these borders work correctly. At first, I tried just removing the background color, but this doesn't work very well once you start adding the extra avatars into the mix and need the overlapping border to be solid so it creates the avatar stacking illusion. |
Think this is in a pretty good spot. Gonna open up for reviews / testing. |
@mananjadhav @MonilBhavsar 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] |
I believe @grgia will handle the overlay (+X) color over in this one |
Ok cool I pushed a fix for it anyway. Maybe we can get @grgia on the review for this one to make sure we are not clashing. 🙏 |
That works, I'll look at this now since I am planning on starting the overlay tonight |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopScreen.Recording.2022-12-06.at.5.01.56.PM.moviOSAndroid |
I need to restart my computer, gonna take a break and then finish :) |
Reviewer Checklist
Screenshots/VideosWebweb-hover-subscript-avatar.movMobile Web - Chromemweb-chrome-hover-subscript-avatar.movMobile Web - Safarimweb-safari-hover-subscript-avatar.movDesktopdesktop-hover-subscript-avatar.moviOSios-hover-subscript-avatar.movAndroidandroid-hover-subscript-avatar.mov |
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.
Tests well, code/styling LGTM
✋ 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 @chiragsalian in version: 1.2.38-6 🚀
|
Details
Looks like we want to the border on avatars to be more of a pass through than matching the app background color. Noticed there was a style of
appBG
being passed to the avatar.Fixed Issues
$ #13347
Tests
Same as QA
Offline tests
QA Steps
/settings
General regression testing idea: Verify that other avatar styles in the app look correct.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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)Screenshots/Videos
Web
2022-12-05_15-25-42.mp4
Mobile Web - Chrome
2022-12-05_16-23-46.mp4
Mobile Web - Safari
2022-12-05_16-12-14.mp4
Desktop
2022-12-05_15-58-56.mp4
iOS
2022-12-05_21-01-22.mp4
Android
2022-12-05_16-33-27.mp4