File tree 1 file changed +19
-1
lines changed
storybook/stories/playground/box
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,28 @@ import {
9
9
BlockToolbar ,
10
10
} from '@wordpress/block-editor' ;
11
11
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
+
12
20
/**
13
21
* Internal dependencies
14
22
*/
15
23
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
+
16
34
import './style.css' ;
17
35
18
36
export default function EditorBox ( ) {
@@ -37,7 +55,7 @@ export default function EditorBox() {
37
55
} }
38
56
>
39
57
< BlockToolbar hideDragHandle />
40
- < BlockCanvas height = "500px" styles = { editorStyles } />
58
+ < BlockCanvas height = "500px" styles = { contentStyles } />
41
59
</ BlockEditorProvider >
42
60
</ div >
43
61
) ;
You can’t perform that action at this time.
0 commit comments