-
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
Add native popover component #2474
Conversation
@shawnborton any idea why the styling breaks on ipad? Looks like we do a static 12.5% so i'm not sure why there would be extra space on the right |
Hmm I think we would need to do some kind of text-align: center in each column - the space on the right is actually just white space from the width of each column, where the emoji is on the left edge. |
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.
Interesting! Why an empty file src/components/Popover/index.native.js?
Because I'm dumb and forgot to push the actual content 😂 |
Updated to fix style |
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, let me get someone to double check me.
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} |
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.
Hmm I wonder if we can get rid of this rule, I see it in so many places in the codebase at this point.
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 👍
🚀 Deployed to staging 🚀
|
Are we planning to fix that and revisit the popover for use on tablets? And if so, is there some context we can leave here about why it's not working in that environment and what specifically is not working? |
IDK is having a desktop-like popup a normal pattern on tablet apps? The specific problems we were having were:
|
Thanks! Yeah, I can't ever remember what the status is on this, but I thought we wanted to have all "wide screens" have more or less the same appearance across platforms. With talk about iPad Pros replacing macs lately it seems like it's becoming more "normal". Not that we need to do anything about it now. Just thought it would be good to leave some breadcrumbs.
That seems kind of unexpected.
This also seems like a problem with the Popover. I noticed some other issues related to the popover not re-positioning itself so maybe that problem would be resolved after they are addressed. |
🚀 Deployed to production in version: 1.0.39-5🚀
|
Details
On tablets we were using popovers like on a desktop due to screen size and that doesn't work very well in that environment. This ensures that we always show popovers as bottom docked regardless of native platform.
Fixed Issues
#1991 (comment)
Tests/QA
Tested On
Screenshots