Skip to content

Commit 16146ba

Browse files
Add changes regarding issue WordPress#68092
1 parent 8ca1bad commit 16146ba

File tree

1 file changed

+19
-1
lines changed
  • storybook/stories/playground/box

1 file changed

+19
-1
lines changed

storybook/stories/playground/box/index.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,28 @@ import {
99
BlockToolbar,
1010
} from '@wordpress/block-editor';
1111

12+
/**
13+
* External dependencies
14+
*/
15+
import componentsStyles from '!!raw-loader!@wordpress/components/build-style/style.css?raw';
16+
import blockEditorContentStyles from '!!raw-loader!@wordpress/block-editor/build-style/content.css?raw';
17+
import blocksStyles from '!!raw-loader!@wordpress/block-library/build-style/style.css?raw';
18+
import blocksEditorStyles from '!!raw-loader!@wordpress/block-library/build-style/editor.css?raw';
19+
1220
/**
1321
* Internal dependencies
1422
*/
1523
import editorStyles from '../editor-styles';
24+
25+
//Base styles for the content within the block canvas iframe.
26+
const contentStyles = [
27+
{ css: componentsStyles },
28+
{ css: blockEditorContentStyles },
29+
{ css: blocksStyles },
30+
{ css: blocksEditorStyles },
31+
{ css: editorStyles },
32+
];
33+
1634
import './style.css';
1735

1836
export default function EditorBox() {
@@ -37,7 +55,7 @@ export default function EditorBox() {
3755
} }
3856
>
3957
<BlockToolbar hideDragHandle />
40-
<BlockCanvas height="500px" styles={ editorStyles } />
58+
<BlockCanvas height="500px" styles={ contentStyles } />
4159
</BlockEditorProvider>
4260
</div>
4361
);

0 commit comments

Comments
 (0)