-
Notifications
You must be signed in to change notification settings - Fork 860
Fix EuiFlyout z-index values for managed and unmanaged flyouts
#9169
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
Conversation
…nd `maskProps` combinations
| ...dynamicStyles, | ||
| ...minWidthOverride, | ||
| ...(finalMaxWidth ? { maxWidth: finalMaxWidth } : {}), | ||
| zIndex, |
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.
z-index is now defined inside the inline style tag. It'll become dynamic in #9160, so I thought it's best if I structure the code in a way that makes that work a little simpler.
| }; | ||
|
|
||
| /** | ||
| * TODO: Calculate z-index values so that the latest flyout is always on top |
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.
This is to be addressed in a separate PR
💚 Build SucceededHistory
cc @tkajtoch |
💚 Build Succeeded
cc @tkajtoch |
…uts (elastic#9169)" This reverts commit 3680ae4.
Summary
Resolves #9141
This PR fixes the issue with
z-indexvalues of EuiFlyout's overlay mask.When I initially refactored the EuiOverlayMask rendering logic in EuiFlyout I forgot to pass
headerZindexLocation="below"which was there before. This was impossible to notice when testing in Storybook, and hid almost perfectly when testing builds if the flyout system branch in Kibana. I noticed it by accident when testing different flyout combinations, but it was also reported during other people's testing - see the linked issue above.This PR brings back the rarely (never?) used z-index of 6000 for 100% compatibility with previous versions of EUI. Furthermore, the added internal hook is a prep work for intelligent z-index management needed to f i x #9160.
I'm skipping the changelog on this one since this bug shouldn't exist in the first place, and it was never released to the public. The upcoming changelogs describe the correct (after this fix) behavior well enough.
Why are we making this change?
To fix buggy behavior introduced in recent changes to EuiFlyout and the flyout system.
Impact to users
No negative impact to users. This isn't a breaking change.
QA
gh pr checkout 241722yarn kbn bootstrapTest if flyouts and their overlay masks look as expected, specifically these variants:
General checklist