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 }]],
|
remarkPlugins: [[pluginNpm2Yarn, { sync: true }]],
|
||||||
docItemComponent: '@theme/ApiItem',
|
docItemComponent: '@theme/ApiItem',
|
||||||
sidebarPath: './sidebars.ts',
|
sidebarPath: './sidebars.ts',
|
||||||
|
breadcrumbs: false,
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./src/css/custom.css'),
|
customCss: require.resolve('./src/css/custom.css'),
|
||||||
|
@ -142,11 +142,11 @@ export default function Root({ children }: { children: React.ReactNode }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{children}
|
||||||
<style
|
<style
|
||||||
dangerouslySetInnerHTML={{ __html: criticalCSS }}
|
dangerouslySetInnerHTML={{ __html: criticalCSS }}
|
||||||
data-critical='true'
|
data-critical='true'
|
||||||
/>
|
/>
|
||||||
{children}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user