From f0f07834c8ddfe72e9892ea59a045904dcf6b4f9 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Thu, 29 Aug 2024 21:11:08 -0400 Subject: [PATCH] Add .seq-root className to custom root containers --- src/components/ThemeProvider/ThemeProvider.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/ThemeProvider/ThemeProvider.tsx b/src/components/ThemeProvider/ThemeProvider.tsx index 885d5d71f..daabfcb73 100644 --- a/src/components/ThemeProvider/ThemeProvider.tsx +++ b/src/components/ThemeProvider/ThemeProvider.tsx @@ -101,6 +101,11 @@ export const ThemeProvider = (props: PropsWithChildren) => { colors: theme as ColorTokens, }) } + + // Add seq-root class to the root element of custom root + if (props.root) { + rootEl.classList.add('seq-root') + } } }, [theme, props.root])