Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
amitraj2203 committed Jun 19, 2024
1 parent 39176ed commit 347ecf4
Showing 1 changed file with 26 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
__experimentalGrid as Grid,
__experimentalVStack as HStack,
__experimentalVStack as VStack,
Tooltip,
} from '@wordpress/components';

/**
Expand Down Expand Up @@ -36,38 +35,35 @@ export default function TypographyVariations( { title, gap = 2 } ) {
{ typographyVariations &&
typographyVariations.length &&
typographyVariations.map( ( variation, index ) => (
<Tooltip key={ index } text={ variation?.title }>
<div>
<Variation
variation={ variation }
property="typography"
<Variation
key={ index }
variation={ variation }
property="typography"
>
{ ( isFocused ) => (
<PreviewIframe
label={ variation?.title }
isFocused={ isFocused }
>
{ ( isFocused ) => (
<PreviewIframe
label={ variation?.title }
isFocused={ isFocused }
{ ( { ratio, key } ) => (
<HStack
key={ key }
spacing={ 10 * ratio }
justify="center"
style={ {
height: '100%',
overflow: 'hidden',
} }
>
{ ( { ratio, key } ) => (
<HStack
key={ key }
spacing={ 10 * ratio }
justify="center"
style={ {
height: '100%',
overflow: 'hidden',
} }
>
<TypographyExample
variation={ variation }
fontSize={ 85 * ratio }
/>
</HStack>
) }
</PreviewIframe>
<TypographyExample
variation={ variation }
fontSize={ 85 * ratio }
/>
</HStack>
) }
</Variation>
</div>
</Tooltip>
</PreviewIframe>
) }
</Variation>
) ) }
</Grid>
</VStack>
Expand Down

0 comments on commit 347ecf4

Please sign in to comment.