diff --git a/packages/block-editor/src/components/font-family/index.js b/packages/block-editor/src/components/font-family/index.js index 4a40a880e537cb..b7de15e7241d0e 100644 --- a/packages/block-editor/src/components/font-family/index.js +++ b/packages/block-editor/src/components/font-family/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { SelectControl } from '@wordpress/components'; +import { CustomSelectControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; /** @@ -25,21 +25,21 @@ export default function FontFamilyControl( { } const options = [ - { value: '', label: __( 'Default' ) }, + { key: '', name: __( 'Default' ) }, ...fontFamilies.map( ( { fontFamily, name } ) => { return { - value: fontFamily, - label: name || fontFamily, + key: fontFamily, + name: name || fontFamily, }; } ), ]; + return ( - key === value ) } + onChange={ ( { selectedItem } ) => onChange( selectedItem.key ) } { ...props } /> );