You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiComboBox] Combobox popover can be hidden behind EuiBottomBar #4872
Z-index issues are really hard to control from an external library. We do our best when it comes to portal content to know, for example, that a Modal should always be on top, or that a fixed element should have a high z-index. EuiComboBox popover's inherit their z-index from their current position and add just a slight bit 100 to ensure it lives on top of any other page content. You should be able to adjust the combo box's z-index to something higher than the bottom bar to fix this.
Other approaches would be
use the EuiPageTemplate with a built in bottomBar
change the bottom bar's position to sticky
The only thing we might be able to do on the EUI side, for combo boxes specifically, is to allow passing the buffer prop through to the EuiPopover. Or have the EuiPopover always also test and account for any padding added to the <body> element.
Z-index issues are really hard to control from an external library
Yeah I can imagine 😅
The only thing we might be able to do on the EUI side...
From a user perspective, knowing all the challenges that exist with z-index, it would be nice to have a way to "reach in" to the component to correct z-index issues. In this case something like the "buffer" prop on the EuiPopover component could have worked really well. In this case, I was able to "fix" the issue by pushing the EuiBottomBar back instead of bringing the EuiComboBox forward (this is the PR that will contain this work for reference elastic/kibana#101714)
@cchaos One alternative I was wondering about, is it not possible to always have popovers with higher z-index value than the bottom bar or other "hovering" EUI components? It seems as though we would always want these in front, but I might be missing a case where this assumption does not hold.
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
Activity
cchaos commentedon Jun 10, 2021
Z-index issues are really hard to control from an external library. We do our best when it comes to portal content to know, for example, that a Modal should always be on top, or that a fixed element should have a high z-index. EuiComboBox popover's inherit their z-index from their current position and add just a slight bit
100to ensure it lives on top of any other page content. You should be able to adjust the combo box's z-index to something higher than the bottom bar to fix this.Other approaches would be
bottomBarstickyThe only thing we might be able to do on the EUI side, for combo boxes specifically, is to allow passing the
bufferprop through to the EuiPopover. Or have the EuiPopover always also test and account for anypaddingadded to the<body>element.jloleysens commentedon Jun 10, 2021
Yeah I can imagine 😅
From a user perspective, knowing all the challenges that exist with z-index, it would be nice to have a way to "reach in" to the component to correct z-index issues. In this case something like the "buffer" prop on the EuiPopover component could have worked really well. In this case, I was able to "fix" the issue by pushing the EuiBottomBar back instead of bringing the EuiComboBox forward (this is the PR that will contain this work for reference elastic/kibana#101714)
jloleysens commentedon Jun 14, 2021
@cchaos One alternative I was wondering about, is it not possible to always have popovers with higher z-index value than the bottom bar or other "hovering" EUI components? It seems as though we would always want these in front, but I might be missing a case where this assumption does not hold.
github-actions commentedon Dec 11, 2021
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
github-actions commentedon Dec 19, 2021
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.