From 48b9ca31fc9644888fb9ad451d696fca5c81ba24 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Thu, 11 Mar 2021 11:56:44 +0100 Subject: [PATCH 1/5] General modal polish. --- packages/base-styles/_variables.scss | 2 +- .../block-library/src/navigation/use-block-navigator.js | 4 ++-- packages/components/src/modal/header.js | 8 ++++++-- packages/components/src/modal/style.scss | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/base-styles/_variables.scss b/packages/base-styles/_variables.scss index 74d8042cae306..dda9168fc25f6 100644 --- a/packages/base-styles/_variables.scss +++ b/packages/base-styles/_variables.scss @@ -63,7 +63,7 @@ $spinner-size: 18px; */ $shadow-popover: 0 2px 6px rgba($black, 0.05); -$shadow-modal: 0 3px 30px rgba($black, 0.2); +$shadow-modal: 0 10px 10px rgba($black, 0.25); /** diff --git a/packages/block-library/src/navigation/use-block-navigator.js b/packages/block-library/src/navigation/use-block-navigator.js index 688fb304af378..479a54c24e216 100644 --- a/packages/block-library/src/navigation/use-block-navigator.js +++ b/packages/block-library/src/navigation/use-block-navigator.js @@ -17,7 +17,7 @@ export default function useBlockNavigator( clientId, __experimentalFeatures ) { const navigatorToolbarButton = ( setIsNavigationListOpen( true ) } icon={ listView } /> @@ -25,7 +25,7 @@ export default function useBlockNavigator( clientId, __experimentalFeatures ) { const navigatorModal = isNavigationListOpen && ( { setIsNavigationListOpen( false ); diff --git a/packages/components/src/modal/header.js b/packages/components/src/modal/header.js index 4f437656c262a..7fcc145b05484 100644 --- a/packages/components/src/modal/header.js +++ b/packages/components/src/modal/header.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { close } from '@wordpress/icons'; +import { closeSmall } from '@wordpress/icons'; /** * Internal dependencies @@ -40,7 +40,11 @@ const ModalHeader = ( { ) } { isDismissible && ( -