Skip to content

Commit

Permalink
Add changes regarding issue WordPress#68092
Browse files Browse the repository at this point in the history
  • Loading branch information
ronakganatra-multidots committed Dec 18, 2024
1 parent 8ca1bad commit 16146ba
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion storybook/stories/playground/box/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,28 @@ import {
BlockToolbar,
} from '@wordpress/block-editor';

/**
* External dependencies
*/
import componentsStyles from '!!raw-loader!@wordpress/components/build-style/style.css?raw';
import blockEditorContentStyles from '!!raw-loader!@wordpress/block-editor/build-style/content.css?raw';
import blocksStyles from '!!raw-loader!@wordpress/block-library/build-style/style.css?raw';
import blocksEditorStyles from '!!raw-loader!@wordpress/block-library/build-style/editor.css?raw';

/**
* Internal dependencies
*/
import editorStyles from '../editor-styles';

//Base styles for the content within the block canvas iframe.
const contentStyles = [
{ css: componentsStyles },
{ css: blockEditorContentStyles },
{ css: blocksStyles },
{ css: blocksEditorStyles },
{ css: editorStyles },
];

import './style.css';

export default function EditorBox() {
Expand All @@ -37,7 +55,7 @@ export default function EditorBox() {
} }
>
<BlockToolbar hideDragHandle />
<BlockCanvas height="500px" styles={ editorStyles } />
<BlockCanvas height="500px" styles={ contentStyles } />
</BlockEditorProvider>
</div>
);
Expand Down

0 comments on commit 16146ba

Please sign in to comment.