@myinterview/widget-react 1.0.20-beta → 1.0.21-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -34967,7 +34967,7 @@ const Main = ({ widgetConfig, setShouldShowWaterMark }) => {
34967
34967
  (_b = viewsRef.current) === null || _b === void 0 ? void 0 : _b.style.setProperty('--myinterview-widget-practice-opacity', scrollTop > 10 ? '0' : '1');
34968
34968
  };
34969
34969
  useEffect(() => {
34970
- document.body.style.setProperty('--myinterview-background-opacity', isLoading || isErrorState ? '0' : '1');
34970
+ document.documentElement.style.setProperty('--myinterview-background-opacity', isLoading || isErrorState ? '0' : '1');
34971
34971
  }, [isLoading]);
34972
34972
  const onRetry = () => {
34973
34973
  send(EVENTS$4.RETRY);