From b386aba523647fc6f7fb929f80853afc963ef094 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Tue, 7 Sep 2021 12:01:35 +0800 Subject: [PATCH] Styling adjustments --- .../src/components/block-placeholder/index.js | 19 ++++++++------- .../components/block-placeholder/style.scss | 24 ++++++++++++++----- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/packages/edit-navigation/src/components/block-placeholder/index.js b/packages/edit-navigation/src/components/block-placeholder/index.js index 98de7b668b1c63..7b4312080f85ea 100644 --- a/packages/edit-navigation/src/components/block-placeholder/index.js +++ b/packages/edit-navigation/src/components/block-placeholder/index.js @@ -52,6 +52,9 @@ function convertPagesToBlocks( pages ) { ); } +const TOGGLE_PROPS = { variant: 'tertiary' }; +const POPOVER_PROPS = { position: 'bottom center' }; + function BlockPlaceholder( { onCreate }, ref ) { const [ selectedMenu, setSelectedMenu ] = useState(); const [ isCreatingFromMenu, setIsCreatingFromMenu ] = useState( false ); @@ -108,10 +111,6 @@ function BlockPlaceholder( { onCreate }, ref ) { } }, [ isCreatingFromMenu, hasResolvedMenuItems ] ); - const toggleProps = { - variant: 'tertiary', - }; - const selectableMenus = menus?.filter( ( menu ) => menu.id !== selectedMenuId ); @@ -120,21 +119,24 @@ function BlockPlaceholder( { onCreate }, ref ) { return ( -
+
{ isLoading && (
) } { ! isLoading && ( -
+