Skip to content

Commit

Permalink
Add block styles slot to the site editor so block style previews can …
Browse files Browse the repository at this point in the history
…be rendered (#40245)

Co-authored-by: Glen Davies <glen.davies@a8c.com>
  • Loading branch information
glendaviesnz and Glen Davies authored Apr 12, 2022
1 parent b523364 commit cef8695
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import { useEffect, useState, useMemo, useCallback } from '@wordpress/element';
import { useSelect, useDispatch } from '@wordpress/data';
import { Popover, Button, Notice } from '@wordpress/components';
import { EntityProvider, store as coreStore } from '@wordpress/core-data';
import { BlockContextProvider, BlockBreadcrumb } from '@wordpress/block-editor';
import {
BlockContextProvider,
BlockBreadcrumb,
BlockStyles,
} from '@wordpress/block-editor';
import {
InterfaceSkeleton,
ComplementaryArea,
Expand Down Expand Up @@ -236,6 +240,7 @@ function Editor( { onError } ) {
content={
<>
<EditorNotices />
<BlockStyles.Slot scope="core/block-inspector" />
{ editorMode === 'visual' &&
template && (
<BlockEditor
Expand Down

0 comments on commit cef8695

Please sign in to comment.