diff --git a/lib/experimental/fonts/load.php b/lib/experimental/fonts/load.php new file mode 100644 index 00000000000000..fdd5dc71ebec24 --- /dev/null +++ b/lib/experimental/fonts/load.php @@ -0,0 +1,28 @@ + +
- + { variantsText || sprintf( /* translators: %d: Number of font variants. */ diff --git a/packages/global-styles-ui/src/font-library-modal/font-collection.tsx b/packages/global-styles-ui/src/font-library/font-collection.tsx similarity index 95% rename from packages/global-styles-ui/src/font-library-modal/font-collection.tsx rename to packages/global-styles-ui/src/font-library/font-collection.tsx index 81aa2f95f6a055..c5891976b7dedd 100644 --- a/packages/global-styles-ui/src/font-library-modal/font-collection.tsx +++ b/packages/global-styles-ui/src/font-library/font-collection.tsx @@ -279,9 +279,9 @@ function FontCollection( { slug }: { slug: string } ) { }; return ( -
+
{ isLoading && ( -
+
) } @@ -290,7 +290,7 @@ function FontCollection( { slug }: { slug: string } ) { <> @@ -344,7 +344,7 @@ function FontCollection( { slug }: { slug: string } ) { ) } -
+
{ /* * Disable reason: The `list` ARIA role is redundant but * Safari+VoiceOver won't announce the list otherwise. @@ -352,14 +352,14 @@ function FontCollection( { slug }: { slug: string } ) { /* eslint-disable jsx-a11y/no-redundant-roles */ }
    { items.map( ( font ) => (
  • { selectedFont && getSortedFontFaces( selectedFont ).map( ( face, i ) => (