diff --git a/packages/components/src/components/Text/Text.tsx b/packages/components/src/components/Text/Text.tsx index f282558..fe864bb 100644 --- a/packages/components/src/components/Text/Text.tsx +++ b/packages/components/src/components/Text/Text.tsx @@ -57,7 +57,7 @@ const renderTypography = const hasEmbed = node?.content?.some((child: any) => child.nodeType?.includes('embedded')); return ( <> - {variant?.startsWith('h') && node?.data?.id ? : null} + {variant?.startsWith('h') && node?.data?.id ?
: null} {/* Use div as Typograph to use the correct styles and avoid invalid DOM nesting when there embedded entries */} {children.map((child: any) => { @@ -80,7 +80,7 @@ const renderTypography = return ( <> - {variant?.startsWith('h') && node?.data?.id ?
: null} + {variant?.startsWith('h') && node?.data?.id ?
: null} {children} @@ -239,7 +239,7 @@ const Root = styled(Box, { overridesResolver: (_, styles) => [styles.root] })<{ variant?: string }>(({ theme }) => { return { - '& a.jumplink': { + '& hr.jumplink': { display: 'block', position: 'relative', visibility: 'hidden',