1
0
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:
FredrikOseberg 2025-08-14 16:13:31 +02:00
parent 181a1b416d
commit e13c79853f
No known key found for this signature in database
GPG Key ID: 282FD8A6D8F9BCF0
2 changed files with 2 additions and 1 deletions

View File

@ -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'),

View File

@ -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}
</> </>
); );
} }