fix: keep arrow below popover content #8207
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
Adds a
z-indexof-1to popover arrow to prevent stacking on top of popover content.This issue was noticed in the Lens color mapping UI where we set
panelPaddingSize="none", see code here. We are not applying any special styles that I can tell but the arrow shows on top of the content, you can see this better when a background color is applied, see below...I was not able to reproduce this in eui docs but another improvement with this change that I did see is the focus state of the popover.
Notice how the arrow slightly occludes the border.
Maybe there is a better solution or issues with this one, open to alternatives.
QA
Remove or strikethrough items that do not apply to your PR.
General checklist