File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
libs/engine/src/custom-elements Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { createPortal } from 'react-dom'
33import styled from 'styled-components'
44import { useViewport } from '../app/contexts/viewport-context'
55import { ShadowDomWrapper } from '../app/components/shadow-dom-wrapper'
6+ import { useMutableWeb } from '../app/contexts/mutable-web-context'
67
78const ModalBackdrop = styled . div `
89 background: #ffffff88;
@@ -25,12 +26,13 @@ export interface OverlayProps {
2526}
2627
2728export const Overlay : React . FC < OverlayProps > = ( { children } ) => {
29+ const { engine } = useMutableWeb ( )
2830 const { viewportRef } = useViewport ( )
2931
3032 if ( ! viewportRef . current ) return null
3133
3234 return createPortal (
33- < ShadowDomWrapper className = "mweb-overlay" >
35+ < ShadowDomWrapper className = "mweb-overlay" stylesheetSrc = { engine . config . bosElementStyleSrc } >
3436 < ModalBackdrop > { children } </ ModalBackdrop >
3537 </ ShadowDomWrapper > ,
3638 viewportRef . current
You can’t perform that action at this time.
0 commit comments