mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: inline CSS after children
This commit is contained in:
parent
181a1b416d
commit
e13c79853f
@ -454,6 +454,7 @@ class="header-github-link"
|
||||
remarkPlugins: [[pluginNpm2Yarn, { sync: true }]],
|
||||
docItemComponent: '@theme/ApiItem',
|
||||
sidebarPath: './sidebars.ts',
|
||||
breadcrumbs: false,
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
|
@ -142,11 +142,11 @@ export default function Root({ children }: { children: React.ReactNode }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{children}
|
||||
<style
|
||||
dangerouslySetInnerHTML={{ __html: criticalCSS }}
|
||||
data-critical='true'
|
||||
/>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user