From 314da76be317c6044d648213928546d7ec486f86 Mon Sep 17 00:00:00 2001 From: Mayank <9084735+mayank99@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:03:45 -0400 Subject: [PATCH] readability --- .../src/core/utils/components/ShadowRoot.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx b/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx index 5298df65162..a48ca40384c 100644 --- a/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx +++ b/packages/itwinui-react/src/core/utils/components/ShadowRoot.tsx @@ -57,14 +57,14 @@ const ClientShadowRoot = ({ const templateRef = React.useRef(null); const shadowRoot = useShadowRoot(templateRef, { css }); + // fallback to : null; + return shadowRoot ? ( ReactDOM.createPortal( <> - { - /* fallback to : null - } - + {fallbackCss} {children} , shadowRoot,