Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix regressions
  • Loading branch information
jeryj committed Nov 7, 2025
commit f93c8f24e709dc929375784b2fd1ac6c88d6a7a7
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ describe( 'BlockToolbarIcon', () => {
icon: paragraph,
showIconLabels: false,
variant: 'default',
blockTitle: 'Block Name',
} ) );

render( <BlockToolbarIcon { ...defaultProps } /> );
Expand All @@ -126,6 +127,7 @@ describe( 'BlockToolbarIcon', () => {
icon: paragraph,
showIconLabels: false,
variant: 'default',
blockTitle: 'Block Name',
} ) );

render(
Expand All @@ -150,6 +152,7 @@ describe( 'BlockToolbarIcon', () => {
icon: paragraph,
showIconLabels: false,
variant: 'default',
blockTitle: 'Block Name',
} ) );

render( <BlockToolbarIcon { ...defaultProps } /> );
Expand All @@ -163,6 +166,7 @@ describe( 'BlockToolbarIcon', () => {
icon: paragraph,
showIconLabels: false,
variant: 'default',
blockTitle: 'Block Name',
} ) );

render(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { hasBlockSupport } from '@wordpress/blocks';
*/
import BlockIcon from '../block-icon';
import { getBlockDisplayInformation } from '../use-block-display-information';
import { getBlockDisplayTitle } from '../block-title/use-block-display-title';
import ListViewExpander from './expander';
import { useBlockLock } from '../block-lock';
import useListViewImages from './use-list-view-images';
Expand Down Expand Up @@ -79,7 +80,10 @@ function ListViewBlockSelectButton(
select( blockEditorStore ).getBlockEditingMode(
clientId
) === 'contentOnly',
blockTitle: blockInformation?.title,
blockTitle: getBlockDisplayTitle( select, {
clientId,
context: 'list-view',
} ),
icon: blockInformation?.icon,
anchor: blockInformation?.anchor,
isSticky: blockInformation?.positionType === 'sticky',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { useSelect } from '@wordpress/data';
*/
import BlockIcon from '../block-icon';
import { getBlockDisplayInformation } from '../use-block-display-information';
import { getBlockDisplayTitle } from '../block-title/use-block-display-title';
import ListViewExpander from './expander';

export default function ListViewDropIndicatorPreview( {
Expand All @@ -37,7 +38,10 @@ export default function ListViewDropIndicatorPreview( {
} );

return {
blockTitle: blockInformation?.title,
blockTitle: getBlockDisplayTitle( select, {
clientId: draggedBlockClientId,
context: 'list-view',
} ),
blockIcon: blockInformation?.icon,
};
},
Expand Down
Loading