Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,22 @@ export default function WidgetAreasBlockEditorContent( {
blockEditorSettings,
} ) {
return (
<BlockTools>
<>
<KeyboardShortcuts />
<BlockEditorKeyboardShortcuts />
<Notices />
<div className="edit-widgets-block-editor editor-styles-wrapper">
<EditorStyles styles={ blockEditorSettings.styles } />
<BlockSelectionClearer>
<WritingFlow>
<ObserveTyping>
<BlockList className="edit-widgets-main-block-list" />
</ObserveTyping>
</WritingFlow>
</BlockSelectionClearer>
<BlockTools>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BlockTools should be wrapped around the editor canvas (.editor-styles-wrapper). It should not be part of the canvas.

<Notices />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, notices should not be part of the editor canvas.

<EditorStyles styles={ blockEditorSettings.styles } />
<BlockSelectionClearer>
<WritingFlow>
<ObserveTyping>
<BlockList className="edit-widgets-main-block-list" />
</ObserveTyping>
</WritingFlow>
</BlockSelectionClearer>
</BlockTools>
</div>
</BlockTools>
</>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.edit-widgets-block-editor {
position: relative;
background: $gray-100;
padding: 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensures the top toolbar and notices have no gap above them.


// This is the default font that is going to be used in the content of the areas (blocks).
font-family: $default-font;
Expand Down