diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/collection-font-variant.js b/packages/edit-site/src/components/global-styles/font-library-modal/collection-font-variant.js index fea8ef02911e15..ba17ee5df84290 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/collection-font-variant.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/collection-font-variant.js @@ -1,18 +1,13 @@ /** * WordPress dependencies */ -import { - CheckboxControl, - Flex, - privateApis as componentsPrivateApis, -} from '@wordpress/components'; +import { CheckboxControl, Flex } from '@wordpress/components'; /** * Internal dependencies */ import { getFontFaceVariantName } from './utils'; import FontFaceDemo from './font-demo'; -import { unlock } from '../../../lock-unlock'; function CollectionFontVariant( { face, @@ -29,10 +24,6 @@ function CollectionFontVariant( { }; const displayName = font.name + ' ' + getFontFaceVariantName( face ); - const { kebabCase } = unlock( componentsPrivateApis ); - const checkboxId = kebabCase( - `${ font.slug }-${ getFontFaceVariantName( face ) }` - ); return (
@@ -46,7 +37,6 @@ function CollectionFontVariant( { diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/font-demo.js b/packages/edit-site/src/components/global-styles/font-library-modal/font-demo.js index 788f03ceab70c8..f052af2cba5cc9 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/font-demo.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/font-demo.js @@ -23,7 +23,6 @@ function FontFaceDemo( { customPreviewUrl, fontFace, text, - checkboxId, onClick, style = {}, } ) { @@ -77,7 +76,6 @@ function FontFaceDemo( { return (
@@ -56,7 +47,6 @@ function LibraryFontVariant( { face, font } ) {