Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changes regarding issue #68092 #68093

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
ronakganatra9 marked this conversation as resolved.
Show resolved Hide resolved

/**
* 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 },
ronakganatra9 marked this conversation as resolved.
Show resolved Hide resolved
];

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
Loading