Skip to content

Commit

Permalink
Widgets editor: Add Breadcrumbs Block (#32498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd authored Jun 10, 2021
1 parent 3df709b commit 7709d7b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/edit-widgets/src/components/layout/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {
useViewportMatch,
} from '@wordpress/compose';
import { close } from '@wordpress/icons';
import { __experimentalLibrary as Library } from '@wordpress/block-editor';
import {
__experimentalLibrary as Library,
BlockBreadcrumb,
} from '@wordpress/block-editor';
import { useEffect } from '@wordpress/element';
import { useDispatch, useSelect } from '@wordpress/data';
import {
Expand All @@ -32,6 +35,8 @@ const interfaceLabels = {
body: __( 'Widgets and blocks' ),
/* translators: accessibility text for the widgets screen settings landmark region. */
sidebar: __( 'Widgets settings' ),
/* translators: accessibility text for the widgets screen footer landmark region. */
footer: __( 'Widgets footer' ),
};

function Interface( { blockEditorSettings } ) {
Expand Down Expand Up @@ -107,6 +112,13 @@ function Interface( { blockEditorSettings } ) {
blockEditorSettings={ blockEditorSettings }
/>
}
footer={
! isMobileViewport && (
<div className="edit-widgets-layout__footer">
<BlockBreadcrumb rootLabelText={ __( 'Widgets' ) } />
</div>
)
}
/>
);
}
Expand Down

0 comments on commit 7709d7b

Please sign in to comment.