Skip to content

Commit 408cfd6

Browse files
committed
Fix VisualLabel compat issue for 5.2
1 parent 26280ed commit 408cfd6

File tree

1 file changed

+4
-2
lines changed
  • plugin/assets/src/block-editor/components/layout-controls

1 file changed

+4
-2
lines changed

plugin/assets/src/block-editor/components/layout-controls/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ export default ( {
5353
onColumnsChange( { ...columns, ...{ [ selectedDevice ]: newColumns } } );
5454
};
5555

56+
const VisualLabel = BaseControl.VisualLabel || 'label';
57+
5658
return (
5759
<BaseControl>
58-
<BaseControl.VisualLabel className="components-base-control__layout-controls-label">
60+
<VisualLabel className="components-base-control__layout-controls-label">
5961
{ label }
6062
<div className="components-base-control__label-actions components-base-control__layout-controls">
6163
{ DEVICES.map( device => (
@@ -71,7 +73,7 @@ export default ( {
7173
</Tooltip>
7274
) ) }
7375
</div>
74-
</BaseControl.VisualLabel>
76+
</VisualLabel>
7577
<RangeControl
7678
label={ __( 'Columns', 'material-design' ) }
7779
value={

0 commit comments

Comments
 (0)