-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiDataGrid & EuiFlyout] Z-Index of flyout is wrong in a full screen #3719
Comments
Thanks for reporting, definitely a bug. Datagrid uses |
Duplicate of #3469 ? |
Similar, but not duplicative - Flyout vs. Modal, as those z-indices are managed separately I'll keep both issues open. Good to have them linked together though, thanks @timroes ! |
This one is certainly tough because modals should always appear above flyouts, hence their default z-indexes. There almost needs to be some sort of automatic z-index service that any component's personal z-index will affect those that it triggers? Flyouts kind of do this right now... Not really really sure. Seems like something that needs a lot of engineering thought. |
We do have a service to compute a necessary z-index to position one element above another. eui/src/services/popover/popover_positioning.ts Lines 730 to 759 in f937fac
It assumes the elements are structured correctly, as there are some edge cases where you cannot z-index elements correctly given a really bad DOM. I think this is all complicated further by the default z-indices being set through CSS. Perhaps, in the CSS-in-JS future, these types of elements (flyouts, modals, popovers) set a context with their "base" z-index and then they read that value and add their relevant z-index value. E.g.
|
I can't reproduce this bug anymore in https://elastic.github.io/eui/#/tabular-content/data-grid-control-columns as of latest master. I believe this was fixed by #5054 |
I am not sure if this is a bug or a feature but after this PR #3655 was merged, this grid example does not work any more when selecting full screen and clicking on the control button that shows the flyout view.
The text was updated successfully, but these errors were encountered: