From 388dd815225f6b880b180c75686ce4ec08bb4139 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Fri, 18 Oct 2024 19:10:53 +1100 Subject: [PATCH] Zoom Out: Disable zoom out toggle button when Style Book is open (#66228) Co-authored-by: andrewserong Co-authored-by: madhusudhand Co-authored-by: getdave Co-authored-by: colorful-tones --- packages/editor/src/components/header/index.js | 2 +- packages/editor/src/components/zoom-out-toggle/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/header/index.js b/packages/editor/src/components/header/index.js index 631643f26d4d5f..d3c82a65a5bc6f 100644 --- a/packages/editor/src/components/header/index.js +++ b/packages/editor/src/components/header/index.js @@ -149,7 +149,7 @@ function Header( { ) } { canBeZoomedOut && isEditorIframed && isWideViewport && ( - + ) } { +const ZoomOutToggle = ( { disabled } ) => { const { isZoomOut, showIconLabels } = useSelect( ( select ) => ( { isZoomOut: unlock( select( blockEditorStore ) ).isZoomOut(), showIconLabels: select( preferencesStore ).get( @@ -37,6 +37,8 @@ const ZoomOutToggle = () => { return (