diff --git a/src/google-fonts/font-variant.js b/src/google-fonts/font-variant.js index 54fd1509..46efbc0b 100644 --- a/src/google-fonts/font-variant.js +++ b/src/google-fonts/font-variant.js @@ -32,21 +32,31 @@ function FontVariant( { font, variant, isSelected, handleToggle } ) { } ); }, [ font, variant ] ); + const formattedFontFamily = font.family.toLowerCase().replace( ' ', '-' ); + const fontId = `${ formattedFontFamily }-${ variant }`; + return (