diff --git a/packages/edit-site/src/components/global-styles/font-families.js b/packages/edit-site/src/components/global-styles/font-families.js index 7a7597878eacd..5e66f705334c8 100644 --- a/packages/edit-site/src/components/global-styles/font-families.js +++ b/packages/edit-site/src/components/global-styles/font-families.js @@ -9,7 +9,7 @@ import { Button, Tooltip, } from '@wordpress/components'; -import { typography } from '@wordpress/icons'; +import { settings } from '@wordpress/icons'; import { useContext } from '@wordpress/element'; /** @@ -33,7 +33,7 @@ function FontFamilies() { { !! modalTabOpen && ( toggleModal() } - initialTabName={ modalTabOpen } + initialTabId={ modalTabOpen } /> ) } @@ -47,7 +47,7 @@ function FontFamilies() { toggleModal( 'installed-fonts' ) } aria-label={ __( 'Manage fonts' ) } - icon={ typography } + icon={ settings } size={ 'small' } /> @@ -63,7 +63,16 @@ function FontFamilies() { ) ) } ) : ( - <>{ __( 'No fonts installed.' ) } + <> + { __( 'No fonts installed.' ) } + + ) } diff --git a/packages/edit-site/src/components/global-styles/style.scss b/packages/edit-site/src/components/global-styles/style.scss index bae6982640391..b4fbd19efff0a 100644 --- a/packages/edit-site/src/components/global-styles/style.scss +++ b/packages/edit-site/src/components/global-styles/style.scss @@ -46,6 +46,10 @@ color: $gray-700; } +.edit-site-global-styles-font-families__add-fonts { + justify-content: center; +} + .edit-site-global-styles-screen-colors { margin: $grid-unit-20;