Skip to content

Commit

Permalink
Add styles cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 27, 2022
1 parent 505be0a commit 1498c7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ function useExplodedModeBackgroundStyles( isExplodedMode, deps = [] ) {
copiedStylesElement.innerHTML = `:where( .is-root-container.is-exploded-mode > .wp-block ) { ${ newBackgroundStyles } }`;
bodyStyleElement.innerHTML =
'body { background: gray !important; }';

return () => {
bodyStyleElement.textContent = '';
copiedStylesElement.textContent = '';
};
},
[ ...deps, isExplodedMode ]
);
Expand Down

0 comments on commit 1498c7b

Please sign in to comment.