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 06bf5953283323..15225c757fae5a 100644 --- a/packages/edit-site/src/components/global-styles/font-families.js +++ b/packages/edit-site/src/components/global-styles/font-families.js @@ -64,8 +64,12 @@ function FontFamilies() { ); } -export default ( { ...props } ) => ( +const FontFamiliesComponent = ( { ...props } ) => ( ); + +export default process.env.IS_GUTENBERG_PLUGIN + ? FontFamiliesComponent + : undefined; 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 2a895b68fa717f..7a812d44c0048d 100644 --- a/packages/edit-site/src/components/global-styles/screen-typography.js +++ b/packages/edit-site/src/components/global-styles/screen-typography.js @@ -22,9 +22,10 @@ function ScreenTypography() { />
- { ! window.__experimentalDisableFontLibrary && ( - - ) } + { FontFamilies && + ! window.__experimentalDisableFontLibrary && ( + + ) }