Skip to content

Commit

Permalink
fix mock and prop description
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Dec 15, 2024
1 parent 4921146 commit 57047c5
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,34 @@ import { ExperimentalBlockEditorProvider } from '../../provider';
// For the purpose of this story, we need to register the core blocks samples.
registerCoreBlocks();
const blocks = [
// vertical
createBlock( 'core/group', {}, [
createBlock( 'core/paragraph' ),
createBlock( 'core/paragraph' ),
createBlock( 'core/paragraph' ),
createBlock( 'core/group', {}, [ createBlock( 'core/paragraph' ) ] ),
] ),
];

const clientId = blocks[ 0 ].innerBlocks[ 0 ].innerBlocks[ 0 ].clientId;

const selection = {
selectionEnd: {
clientId: blocks[ 0 ].innerBlocks[ 0 ].clientId,
clientId,
},
selectionStart: {
clientId: blocks[ 0 ].innerBlocks[ 0 ].clientId,
clientId,
},
};

/**
* The block breadcrumb trail displays the hierarchy of the current block selection as a breadcrumb. It also allows, using this hierarchy, to navigate to the parent elements of the current block selection. It is located at the very bottom of the editor interface.
*/
const meta = {
title: 'BlockEditor/Breadcrumb',
component: Breadcrumb,
argTypes: {
rootLabelText: {
control: 'text',
defaultValue: 'Document',
defaultValue: '',
description:
'Translated label for the root element of the breadcrumb trail',
'Label text for the root element (the first `<li />`) of the breadcrumb trail.',
},
},
decorators: [
Expand Down

0 comments on commit 57047c5

Please sign in to comment.