Skip to content

Commit ff8d589

Browse files
Add Blockbreadcrumb (#25)
1 parent eba84b5 commit ff8d589

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/block-editor/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { serialize, parse } from '@wordpress/blocks';
99
import { uploadMedia } from '@wordpress/media-utils';
1010

1111
import {
12+
BlockBreadcrumb,
1213
BlockEditorKeyboardShortcuts,
1314
BlockEditorProvider,
1415
BlockList,
@@ -85,6 +86,7 @@ function BlockEditor({ settings: _settings }) {
8586
onChange={handlePersistBlocks}
8687
settings={settings}
8788
>
89+
<BlockBreadcrumb />
8890
<Sidebar.InspectorFill>
8991
<BlockInspector />
9092
</Sidebar.InspectorFill>

src/styles.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,13 @@ body.block-editor-page {
5858
.components-modal__frame {
5959
@include reset;
6060
}
61+
62+
.block-editor-block-breadcrumb {
63+
position: absolute;
64+
bottom: 0;
65+
z-index: 1;
66+
padding: 5px;
67+
background-color: #fff;
68+
width: 100%;
69+
border-top: 1px solid #dddddd;
70+
}

0 commit comments

Comments
 (0)