Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
LanguageDocumentationPopoverContent,
} from '@kbn/language-documentation';
import { css } from '@emotion/react';
import { css as cssClassName } from '@emotion/css';
import {
EuiButtonIcon,
EuiButtonEmpty,
Expand Down Expand Up @@ -156,7 +157,11 @@ export function FormulaEditor({
const node1 = (overflowDiv1.current = document.createElement('div'));
node1.setAttribute('data-test-subj', 'lnsFormulaWidget');
// Monaco CSS is targeted on the monaco-editor class
node1.classList.add('lnsFormulaOverflow', 'monaco-editor');
node1.classList.add(
'lnsFormulaOverflow',
'monaco-editor',
cssClassName(sharedEditorStyles.overflowWidget(euiThemeContext))
);
document.body.appendChild(node1);
}

Expand Down Expand Up @@ -981,18 +986,17 @@ const sharedEditorStyles = {
}
}

.lnsFormulaOverflow {
// Needs to be higher than the modal and all flyouts
z-index: ${euiTheme.levels.toast} + 1;
}

.lnsFormula__editorContent {
background-color: ${euiTheme.colors.backgroundBasePlain};
min-height: 0;
position: relative;
}
`;
},
overflowWidget: ({ euiTheme }: UseEuiTheme) => `
// Needs to be higher than the modal and all flyouts
z-index: ${Number(euiTheme.levels.toast) + 1};
`,
formulaDocs: ({ euiTheme }: UseEuiTheme) => css`
display: flex;
flex-direction: column;
Expand Down