Skip to content

Commit

Permalink
fix: add inline <head><style> to ensure the order of declared css lay…
Browse files Browse the repository at this point in the history
…ers as much as possible (#9123)

Should help alleviate some problems outlined in
#8878
  • Loading branch information
paulpopus authored Nov 13, 2024
1 parent 9da8543 commit cd95daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/src/layouts/Root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ export const RootLayout = async ({

return (
<html data-theme={theme} dir={dir} lang={languageCode}>
<head>
<style>{`@layer payload-default, payload;`}</style>
</head>
<body>
<RootProvider
config={clientConfig}
Expand Down

0 comments on commit cd95daf

Please sign in to comment.