We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 691b0ec commit 623c53aCopy full SHA for 623c53a
1 file changed
packages/theme/src/theme-provider.tsx
@@ -25,7 +25,9 @@ export const ThemeProvider = ( {
25
26
// Mirror the wrapper's custom properties onto `document.documentElement`
27
// so they reach portals and anything else rendered outside the wrapper
28
- // (e.g. the `html`/`body` background).
+ // (e.g. the `html`/`body` background). Unlike the wrapper, `html` is a
29
+ // shared element, so we set/remove individual properties (preserving any
30
+ // prior value) instead of declaratively assigning a full style object.
31
useLayoutEffect( () => {
32
if ( ! isRoot || typeof document === 'undefined' ) {
33
return;
0 commit comments