diff --git a/packages/edit-site/src/components/global-styles/style-variations-container.js b/packages/edit-site/src/components/global-styles/style-variations-container.js index 990ac9c4353783..0540789d2f06e4 100644 --- a/packages/edit-site/src/components/global-styles/style-variations-container.js +++ b/packages/edit-site/src/components/global-styles/style-variations-container.js @@ -14,6 +14,7 @@ import { __experimentalHeading as Heading, __experimentalGrid as Grid, __experimentalHStack as HStack, + __experimentalVStack as VStack, __experimentalZStack as ZStack, ColorIndicator, } from '@wordpress/components'; @@ -117,6 +118,9 @@ const getFontFamilyNames = ( themeJson ) => { return [ bodyFontFamily?.name, headingFontFamily?.name ]; }; +const normalizedHeight = 100; +const ratio = 1; + function Variation( { variation, isColor, isFont } ) { const [ isFocused, setIsFocused ] = useState( false ); const { base, user, setUserConfig } = useContext( GlobalStylesContext ); @@ -244,12 +248,9 @@ function ColorVariation( { variation } ) { return (
setIsFocused( true ) } onBlur={ () => setIsFocused( false ) } > -
{ headingFontFamilies.name } @@ -367,7 +373,7 @@ function TypographyVariation( { variation } ) {
{ bodyFontFamilies.name }
-
+
); @@ -376,7 +382,7 @@ function TypographyVariation( { variation } ) { function ColorVariations( { variations } ) { const { user } = useContext( GlobalStylesContext ); const colorVariations = - variations && getVariationsByType( user, variations, 'color' ); + variations && getVariationsByType( user, variations, 'color' ); // should also get filter? return ( <>