Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ function FontFamilies() {
);
}

export default ( { ...props } ) => (
const FontFamiliesComponent = ( { ...props } ) => (
<FontLibraryProvider>
<FontFamilies { ...props } />
</FontLibraryProvider>
);

export default process.env.IS_GUTENBERG_PLUGIN
? FontFamiliesComponent
: undefined;
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ function ScreenTypography() {
/>
<div className="edit-site-global-styles-screen-typography">
<VStack spacing={ 6 }>
{ ! window.__experimentalDisableFontLibrary && (
<FontFamilies />
) }
{ FontFamilies &&
! window.__experimentalDisableFontLibrary && (
<FontFamilies />
) }
<TypographyElements />
</VStack>
</div>
Expand Down