From e6ba12fde714d6193a953f055b7ac89b7c98eccf Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Wed, 18 Dec 2024 15:33:53 +0100 Subject: [PATCH] fix(editor): Modal in moodle --- packages/editor/src/editor-ui/editor-modal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/editor-ui/editor-modal.tsx b/packages/editor/src/editor-ui/editor-modal.tsx index 5cf8747c96..0d30b484bb 100644 --- a/packages/editor/src/editor-ui/editor-modal.tsx +++ b/packages/editor/src/editor-ui/editor-modal.tsx @@ -104,6 +104,8 @@ export function EditorModal({ ) } +// The moodle navigation bar has a z-index of 1030... We are using 1040 to make +// sure the modal can be on top and is not cut off export const defaultModalOverlayStyles = cn( - 'fixed bottom-0 left-0 right-0 top-0 z-[101] bg-white bg-opacity-75' + 'fixed bottom-0 left-0 right-0 top-0 z-[1040] bg-white bg-opacity-75' )