Skip to content

Commit

Permalink
Fix layout styles not applying in widgets customizer (#35865)
Browse files Browse the repository at this point in the history
* Fix layout styles not applying in widgets customizer

* Apply default styles

* Use defaultEditorStyles
  • Loading branch information
kevin940726 authored Oct 29, 2021
1 parent 2d00327 commit f697752
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
WritingFlow,
BlockEditorKeyboardShortcuts,
__unstableBlockSettingsMenuFirstItem,
__unstableEditorStyles as EditorStyles,
} from '@wordpress/block-editor';
import { uploadMedia } from '@wordpress/media-utils';
import { store as interfaceStore } from '@wordpress/interface';
Expand Down Expand Up @@ -121,8 +122,9 @@ export default function SidebarBlockEditor( {

<CopyHandler>
<BlockTools>
<EditorStyles styles={ settings.defaultEditorStyles } />
<BlockSelectionClearer>
<WritingFlow>
<WritingFlow className="editor-styles-wrapper">
<ObserveTyping>
<BlockList
renderAppender={ BlockAppender }
Expand Down

0 comments on commit f697752

Please sign in to comment.