diff --git a/packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap b/packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap
index e58bd37dead6c..787c5e348e51a 100644
--- a/packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap
+++ b/packages/shared-ux/code_editor/impl/__snapshots__/code_editor.test.tsx.snap
@@ -2,7 +2,7 @@
exports[` hint element should be tabable 1`] = `
is rendered 1`] = `
onMouseOver={[Function]}
>
= ({
role="button"
onClick={startEditing}
onKeyDown={onKeyDownHint}
- aria-label={ariaLabel}
+ aria-label={i18n.translate('sharedUXPackages.codeEditor.codeEditorEditButton', {
+ defaultMessage: '{codeEditorAriaLabel}, activate edit mode',
+ values: {
+ codeEditorAriaLabel: ariaLabel,
+ },
+ })}
data-test-subj={`codeEditorHint codeEditorHint--${isHintActive ? 'active' : 'inactive'}`}
/>
@@ -527,6 +532,7 @@ export const CodeEditor: React.FC = ({
) : null}
+ {accessibilityOverlayEnabled && isFullScreen && renderPrompt()}
= ({
const useFullScreen = ({ allowFullScreen }: { allowFullScreen?: boolean }) => {
const [isFullScreen, setIsFullScreen] = useState(false);
+ const { euiTheme } = useEuiTheme();
const toggleFullScreen = () => {
setIsFullScreen(!isFullScreen);
@@ -616,12 +623,12 @@ const useFullScreen = ({ allowFullScreen }: { allowFullScreen?: boolean }) => {
return (
- {children}
+ {children}
);
},
- [isFullScreen]
+ [isFullScreen, euiTheme]
);
return {
diff --git a/packages/shared-ux/code_editor/impl/editor.styles.ts b/packages/shared-ux/code_editor/impl/editor.styles.ts
index 62f15a4a88317..2d12cd01d031b 100644
--- a/packages/shared-ux/code_editor/impl/editor.styles.ts
+++ b/packages/shared-ux/code_editor/impl/editor.styles.ts
@@ -15,10 +15,11 @@ export const styles = {
position: relative;
height: 100%;
`,
- fullscreenContainer: css`
+ fullscreenContainer: (euiTheme: EuiThemeComputed) => css`
position: absolute;
left: 0;
top: 0;
+ background: ${euiTheme.colors.body};
`,
keyboardHint: (euiTheme: EuiThemeComputed) => css`
position: absolute;