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
Workaround for Chromium CSS mask-image bug breaks positioning for nested position:fixed content #8269
We introduced a fix (PR) for a Chromium bug around the CSS property mask-image which does not create expected stacking context correctly.
We noticed that this fix breaks the positioning of content with position:fixed inside of elements that also have position:fixed applied (e.g EuiFlyout or EuiModal).
ℹ It was reported that this applies for the ES|QL suggestion popover of the Monaco editor used across Kibana.
unexpected
suggestion popover is positioning outside of the visible content
example with removed position:fixed on the flyout to showcase wrong positioning
expected
As mentioned in the previous PR there are other CSS properties that also work to force the stacking context of which position:relative seems to work for the current case at hand. But it will require testing for possible use cases across components that make use of the euiYScrollWithShadows or euiXScrollWithShadows to ensure it does not break something else as position:relative will have an effect on nested children with e.g. position:absolute.
Instead of adding position:relative we might currently rather keep using the consumer-side override for the cases that need it.
The reasoning here is that:
position: relative might have more unexpected effects across Kibana considering flyouts and modals are used extensively in any kind of combination with custom content we don't have awareness of
The specific use case that resulted in the positioning issue on Kibana side is currently specific to the use of the 3rd-party monaco editor on Kibana side. While it's a very scoped issue to that specific usage, adding the override on consumer side is more appropriate.
Looking at the EUI components alone that might have an expected position: fixed there should currently not be a combination that results in nested fixed positioned content.
In a custom test on EUI side (using the non-exposed portal API for datepicker in EuiDatePicker) I noticed that position: relative actually did not solve the positioning issue as expected while translateZ(0) did. That means it might not be a valid solution in 100% of the cases.
Activity
[SIEM migrations] ES|QL editor: Broken suggestions menu (#11535) (#21…
[SIEM migrations] ES|QL editor: Broken suggestions menu (elastic#11535)…
[SIEM migrations] ES|QL editor: Broken suggestions menu (elastic#11535)…
[SIEM migrations] ES|QL editor: Broken suggestions menu (elastic#11535)…
[8.x] [SIEM migrations] ES|QL editor: Broken suggestions menu (#11535) (
[9.0] [SIEM migrations] ES|QL editor: Broken suggestions menu (#11535) (
[8.18] [SIEM migrations] ES|QL editor: Broken suggestions menu (#11535)…
mgadewoll commentedon Apr 3, 2025
Instead of adding
position:relativewe might currently rather keep using the consumer-side override for the cases that need it.The reasoning here is that:
position: relativemight have more unexpected effects across Kibana considering flyouts and modals are used extensively in any kind of combination with custom content we don't have awareness ofmonacoeditor on Kibana side. While it's a very scoped issue to that specific usage, adding the override on consumer side is more appropriate.position: fixedthere should currently not be a combination that results in nested fixed positioned content.position: relativeactually did not solve the positioning issue as expected whiletranslateZ(0)did. That means it might not be a valid solution in 100% of the cases.