diff --git a/packages/block-editor/src/components/block-toolbar/index.js b/packages/block-editor/src/components/block-toolbar/index.js index b3bf7e94accb08..ea068d8126526c 100644 --- a/packages/block-editor/src/components/block-toolbar/index.js +++ b/packages/block-editor/src/components/block-toolbar/index.js @@ -36,6 +36,7 @@ import __unstableBlockNameContext from './block-name-context'; import NavigableToolbar from '../navigable-toolbar'; import { useHasBlockToolbar } from './use-has-block-toolbar'; import ChangeDesign from './change-design'; +import SwitchSectionStyle from './switch-section-style'; import { unlock } from '../../lock-unlock'; /** @@ -72,6 +73,7 @@ export function PrivateBlockToolbar( { showSlots, showGroupButtons, showLockButtons, + showSwitchSectionStyleButton, } = useSelect( ( select ) => { const { getBlockName, @@ -141,6 +143,7 @@ export function PrivateBlockToolbar( { showSlots: ! isZoomOut(), showGroupButtons: ! isZoomOut(), showLockButtons: ! isZoomOut(), + showSwitchSectionStyleButton: isZoomOut(), }; }, [] ); @@ -222,6 +225,9 @@ export function PrivateBlockToolbar( { { showShuffleButton && ( ) } + { showSwitchSectionStyleButton && ( + + ) } { shouldShowVisualToolbar && showSlots && ( <>