-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Popover] Add zIndexOverride prop #3937
Conversation
c8558fb
to
313d033
Compare
313d033
to
8d7750c
Compare
Need to do some testing when I get a chance, but at a glance does seem like this would solve our underlying issue |
} = this.props; | ||
|
||
const style = { | ||
top: top == null || isNaN(top) ? undefined : top, | ||
left: left == null || isNaN(left) ? undefined : left, | ||
right: right == null || isNaN(right) ? undefined : right, | ||
width: width == null || isNaN(width) ? undefined : width, | ||
zIndex: zIndex == null || isNaN(zIndex) ? undefined : zIndex, | ||
zIndex: zIndexOverride || zIndex || undefined, |
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.
Because of zIndex
typing (number | null
) we shouldn't need the isNaN
check? So this simplifies that condition statement I believe.
Brought these changes over locally into the Flow-App repo (where the request initiated from) and can confirm this fixes our issue and allows us to set a custom z-index value for our DatePicker Popover. 🎩 |
8e0002d
to
7e447f5
Compare
7e447f5
to
6046a5e
Compare
WHY are these changes introduced?
Fixes https://github.com/Shopify/polaris-ux/issues/602
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes