Skip to content

Commit

Permalink
[Security] Fix hidden flyout/failing Cypress test caused by `styled-c…
Browse files Browse the repository at this point in the history
…omponents` not overriding Emotion z-index CSS

- adding either !important or a single extra layer of specificity fixes the issue
  • Loading branch information
cee-chen committed Nov 14, 2022
1 parent 7ed54d2 commit f93518e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const StyledEuiFlyout = styled(EuiFlyout)<EuiFlyoutProps>`
const IndexPatternFieldEditorOverlayGlobalStyle = createGlobalStyle<{
theme: { eui: { euiZLevel5: number } };
}>`
.indexPatternFieldEditorMaskOverlay {
.euiOverlayMask.indexPatternFieldEditorMaskOverlay {
${({ theme }) => `
z-index: ${theme.eui.euiZLevel5};
`}
Expand Down

0 comments on commit f93518e

Please sign in to comment.