The ModalManagerHostBridge is a bridge between the ModalManager and the
host that sets up environment-specific changes when the modal opens and closes.
For instance, when the modal opens, this adds a class to the <body> tag for styling
and adds a resize listener to fix a Safari shadow root issue.
Consumers can create their own ModalManagerHostBridgeInterface classes and pass
them into the ModalManager if this one does not work for their environment.
The
ModalManagerHostBridgeis a bridge between theModalManagerand the host that sets up environment-specific changes when the modal opens and closes.For instance, when the modal opens, this adds a class to the
<body>tag for styling and adds aresizelistener to fix a Safari shadow root issue.Consumers can create their own
ModalManagerHostBridgeInterfaceclasses and pass them into theModalManagerif this one does not work for their environment.{ModalManagerHostBridgeInterface}