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 6a554b136317d..5332478823c21 100644 --- a/packages/edit-site/src/components/global-styles/font-families.js +++ b/packages/edit-site/src/components/global-styles/font-families.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __, _x } from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { __experimentalText as Text, __experimentalItemGroup as ItemGroup, @@ -61,14 +61,9 @@ function FontFamilies() { ) } - { themeFonts.length > 0 && ( - - - { - /* translators: Heading for a list of fonts provided by the theme. */ - _x( 'Theme', 'font source' ) - } - + { [ ...themeFonts, ...customFonts ].length > 0 && ( + <> + { __( 'Fonts' ) } { themeFonts.map( ( font ) => ( ) ) } - - ) } - { customFonts.length > 0 && ( - - - { - /* translators: Heading for a list of fonts installed by the user. */ - _x( 'Custom', 'font source' ) - } - - - { customFonts.map( ( font ) => ( - - ) ) } - - + ) } { ! hasFonts && ( diff --git a/packages/edit-site/src/components/global-styles/screen-typography.js b/packages/edit-site/src/components/global-styles/screen-typography.js index 70acf9e7ae3d4..3739e3234258b 100644 --- a/packages/edit-site/src/components/global-styles/screen-typography.js +++ b/packages/edit-site/src/components/global-styles/screen-typography.js @@ -27,7 +27,7 @@ function ScreenTypography() {