-
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
Updated placement of the user status icon #34795
Updated placement of the user status icon #34795
Conversation
@mollfpr Below I am attaching the screenshots for these styling
|
Hmm this doesn't quite seem to line up with the mockup I remember seeing. @dubielzyk-expensify or @dannymcclain can you provide some more direction on the specifics here? |
Oh interesting, I did not realize that was the case. That seems like a bit of a bug... but regardless, all of this is changing with the new #ideal-nav restructuring, so I think we only need to worry about the darker |
Below I am attaching a screenshots for the ios, web and desktop, please have a look and give your feedback. For the user status icon view, height and width of the background is 16px and background color is
Right now desktop and all the other platform has same header background color (highlightBG), so not sure if we have to do anything extra for the desktop here |
Sounds good. Just noting though that when we merge this into the new #ideal-nav branch, we'll need to change the status icon area border color from highlightBG to just our standard appBG. |
In your screenshots, things still appear to be off. I think they are too small because the width of that area is taking into account the border size. So if we want the ellipse area to be 16px with a 2px outer stroke, we might need to make that area at say 20x20? So we get 16px + 2px stroke + 2px stroke. |
@shawnborton in this screenshot we have used 20px height width of the main view and 2px stroke and 12px for the emoji |
Nice, that seems better but let's see what @dubielzyk-expensify thinks Also, is it just me, or is there a dark border around the user icon that shouldn't be there? |
Lets wait for @dubielzyk-expensify feedback
It is added intentionally in code, background dimensions is 44 * 44 and avatar’s dimensions is 40 * 40, if we don’t want the outer stroke then we can set background dimensions to 40*40 |
yeah, I don't know that we want that outer stroke there anymore. |
then we can remove outer stroke it in this PR |
Great work @jayeshmangwani . Like Shawn said, let's remove the outer border on the profile picture It looks like some emoji's overstep the barrier of the circle: Can we get a few screenshots with different emojis that are bigger? I think we might have to shrink it down ever so slightly |
@dubielzyk-expensify Thanks for the review, I checked few emojis and it looks like that some large emojis goes a slight outside the view and overlap the stroke, in the attached images last one looks like that it goes outside the view, either we can hide the overflowed part or we can reduce emoji size. In the below attached images, we have removed outer border of the profile picture |
Hmm is it just me or does it feel like the ellipsis/background circle for the emoji is too small in those screenshots again? |
@shawnborton Yes you are right, above screenshot is of the 16*16 total dimensions, sorry I had overwritten the changes, I am attaching the new screenshots please check that, in these screenshots I have used 2px stroke and 16px background and 9px font size. |
Cool, it might not be pulled down and to the right enough, but the sizing feels better. Will let Jon chime in with specifics though :) |
Thanks for the review, some emojis alignment is off because we are using the text for showing the emojis and some emojis has default spacing |
I meant the entire circle area might need to be down and to the right some more, not the emoji inside of it. |
ohh gotcha, in the attached screenshots its -2px from bottom and right |
That looks right to me. Thanks for the polish @jayeshmangwani ! |
@jayeshmangwani Let me know when it's ready to review! |
@mollfpr PR is now ready for review |
Reviewer Checklist
Screenshots/VideosAndroid: Native34795.Android.mp4Android: mWeb Chrome34795.mWeb-Chrome.mp4iOS: Native34795.iOS.moviOS: mWeb Safari34795.mWeb-Safari.movMacOS: Chrome / Safari34795.Web.mp4MacOS: Desktop34795.Desktop.mp4 |
@shawnborton @dubielzyk-expensify just checking that this is fine to have both GBR and the status? |
Nice find! But I do think that this is okay. |
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!
✋ 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/johnmlee101 in version: 1.4.33-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.33-5 🚀
|
Details
Fixed Issues
$ #34380
PROPOSAL: #34380 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
MacOS: Desktop