-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[RFC] fix(popup): popup window relative to last focused window #8356
Conversation
I've always felt that the confirmation window appearing on the upper left corner is disorienting since all other MetaMask interactions appear in the upper right corner window (near the fox in the browser bar). This decision (I believe) was made so it would be harder to fake a MetaMask popup. Does the left side position not have the same risks? Is there any other reason for the upper left popup location? I'd propose instead that the MetaMask window always appear on the upper right corner. These UX principles apply here:
Any thoughts on this? @brad-decker @jacobcantele @danfinlay @cjeria @omnat ** having the popup always appear on the window relative to last focus is obviously a huge improvement regardless! |
upper left is just easiest with the information the API returns, we can use other info to get the width of the browser and move the popup to the top-right if that is the desired effect. |
3a8da85
to
1e83e46
Compare
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.
Thanks, this looks like a great solution!
1e83e46
to
6028e67
Compare
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!
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.
I agree that this is a good solution. I had one question about it.
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!
Fixes #7314
Cause of bug
Suggested resolution
I have defaulted to opening the popup perfectly aligned with the top left most pixel of the last focused window. This could end up being wonky. I would love to get an idea of what the best-case scenario would be from the product team @jacobcantele and of course would love input from the engineers on the approach here.