Skip to content

Commit

Permalink
Fix global styles updating in style book. (#68111)
Browse files Browse the repository at this point in the history
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
  • Loading branch information
3 people authored Dec 19, 2024
1 parent 2d974f2 commit 0c9da7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/style-book/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import { getExamples } from './examples';
import { store as siteEditorStore } from '../../store';
import { useSection } from '../sidebar-global-styles-wrapper';
import { STYLE_BOOK_COLOR_GROUPS } from '../style-book/constants';
import { GlobalStylesRenderer } from '../global-styles-renderer';

const {
ExperimentalBlockEditorProvider,
Expand Down Expand Up @@ -432,6 +433,7 @@ export const StyleBookPreview = ( { userConfig = {}, isStatic = false } ) => {
<div className="edit-site-style-book">
{ resizeObserver }
<BlockEditorProvider settings={ settings }>
<GlobalStylesRenderer disableRootPadding />
<StyleBookBody
examples={ examplesForSinglePageUse }
settings={ settings }
Expand Down

1 comment on commit 0c9da7c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 0c9da7c.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12407911422
📝 Reported issues:

Please sign in to comment.