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 cbb6b7828c72ee..309bd8a9dc81fe 100644 --- a/packages/edit-site/src/components/global-styles/font-families.js +++ b/packages/edit-site/src/components/global-styles/font-families.js @@ -3,6 +3,7 @@ */ import { __ } from '@wordpress/i18n'; import { + __experimentalText as Text, __experimentalItemGroup as ItemGroup, __experimentalVStack as VStack, Button, @@ -48,48 +49,53 @@ function FontFamilies() { /> ) } - - { __( 'Fonts' ) } - { hasFonts ? ( - <> + + { themeFonts.length > 0 && ( + + { __( 'Theme Fonts' ) } - { customFonts.map( ( font ) => ( + { themeFonts.map( ( font ) => ( ) ) } - { themeFonts.map( ( font ) => ( + + + ) } + { customFonts.length > 0 && ( + + + { __( 'Custom fonts' ) } + + + { customFonts.map( ( font ) => ( ) ) } - - - ) : ( - <> - { __( 'No fonts installed.' ) } - - + + ) } + { ! hasFonts && ( + + { __( 'Fonts' ) } + { __( 'No fonts installed.' ) } + ) } + ); diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js index 7d3fa0cd703b64..564f972ce10f0a 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/installed-fonts.js @@ -169,10 +169,10 @@ function InstalledFonts() { { notice.message } ) } - { baseCustomFonts.length > 0 && ( + { baseThemeFonts.length > 0 && (

- { __( 'Installed Fonts' ) } + { __( 'Theme Fonts' ) }

{ /* * Disable reason: The `list` ARIA role is redundant but @@ -183,7 +183,7 @@ function InstalledFonts() { role="list" className="font-library-modal__fonts-list" > - { baseCustomFonts.map( ( font ) => ( + { baseThemeFonts.map( ( font ) => (
  • ) } - { baseThemeFonts.length > 0 && ( + { baseCustomFonts.length > 0 && (

    - { __( 'Theme Fonts' ) } + { __( 'Custom fonts' ) }

    { /* * Disable reason: The `list` ARIA role is redundant but @@ -220,7 +220,7 @@ function InstalledFonts() { role="list" className="font-library-modal__fonts-list" > - { baseThemeFonts.map( ( font ) => ( + { baseCustomFonts.map( ( font ) => (