fix(lsd-react): load global and baseline styles before user styles

This commit is contained in:
Hossein Mehrabi 2023-06-01 23:29:56 +03:30
parent 3030769c3e
commit 0fb32830df
1 changed files with 1 additions and 1 deletions

View File

@ -17,9 +17,9 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
<ResizeObserverProvider>
<PortalProvider>
<ThemeContext.Provider value={{ theme }}>
<EmotionThemeProvider theme={theme}>{children}</EmotionThemeProvider>
<CSSBaseline theme={theme} />
<Global styles={theme.globalStyles} />
<EmotionThemeProvider theme={theme}>{children}</EmotionThemeProvider>
</ThemeContext.Provider>
</PortalProvider>
</ResizeObserverProvider>