From 8d99dcf79410e6f6fb2028b2154f37a0a37c9153 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 24 Jun 2024 08:33:38 +0200 Subject: [PATCH] Make the fonts management modal dialog more discoverable (#62129) * Replace Manage fonts icon button with visible text button. * Fix after rebase. * Male buttons use the next 40 pixels height. Co-authored-by: afercia Co-authored-by: t-hamano Co-authored-by: jameskoster Co-authored-by: richtabor Co-authored-by: colorful-tones Co-authored-by: noisysocks Co-authored-by: annezazu --- .../components/global-styles/font-families.js | 47 +++++++++++-------- .../src/components/global-styles/style.scss | 3 +- .../specs/site-editor/font-library.spec.js | 29 ++++++------ 3 files changed, 45 insertions(+), 34 deletions(-) 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 7713b27e306ef..cbb6b7828c72e 100644 --- a/packages/edit-site/src/components/global-styles/font-families.js +++ b/packages/edit-site/src/components/global-styles/font-families.js @@ -5,11 +5,9 @@ import { __ } from '@wordpress/i18n'; import { __experimentalItemGroup as ItemGroup, __experimentalVStack as VStack, - __experimentalHStack as HStack, Button, } from '@wordpress/components'; import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor'; -import { settings } from '@wordpress/icons'; import { useContext } from '@wordpress/element'; /** @@ -51,30 +49,41 @@ function FontFamilies() { ) } - - { __( 'Fonts' ) } - + ) : ( <> { __( 'No fonts installed.' ) }