-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: apply style utility for unstable anchorPosition #42370
Conversation
@DylanDylann 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] |
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.
Design-wise I think this is looking/working well. I can't think of any other places this pops up, but if someone else can, give a shout! Definitely still get a legit technical review from an engineer 😊
@shawnborton I think perfectly centered makes sense. I did some measuring, and it looks like they're maybe off by 1px? I'm wondering if the scrollbar in your first screenshot is throwing off the visual alignment. (Side note: looks like these menus are using an incorrect border radius 😑) |
If they are off by just 1px, than I bet the border width is is what's throwing things off? Good catch on the border radius too, maybe we can create a follow up issue to fix that? |
I also think we should do centered under the avatar as long as it doesn't go less than |
@dragnoir So sorry, but could you explain more about the root cause that you mentioned in your proposal
Why measureInWindow failed in this case? |
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-05-23.at.17.15.06.movMacOS: DesktopScreen.Recording.2024-05-23.at.17.16.52.mov |
Yeah I think we can create a follow up issue for that. Small css tweak so should probably be priced lower than a standard issue I think. |
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.
One nitpick, otherwise looks good
@dragnoir Please address above comment |
@dannymcclain would you mind making a follow up issue for the centering bug? |
✋ 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/puneetlath in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
This PR fixes the issue of floating dropdown menu position, of the group avatar, when resizing the browser.
Fixed Issues
$ #40944
PROPOSAL: #40944 (comment)
Tests
Offline tests
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
NA
Android: mWeb Chrome
NA
iOS: Native
NA
iOS: mWeb Safari
NA
MacOS: Chrome / Safari
20240520_140550.mp4
MacOS: Desktop
NA