Updated Heading component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m35s

This commit is contained in:
Ryan Freeman 2024-09-25 21:06:30 +01:00
parent 79843631b4
commit 4bbe6a4ebf

View File

@ -13,7 +13,7 @@ export function Heading({as: Component = 'h1', children = null}: HeadingProps) {
return (
<Component id={createSlug(headingText)} className='group'>
{children}
<Link className='ml-1 group-hover:opacity-100 opacity-0 transition-opacity ease-in'
<Link className='ml-1.5 group-hover:visible invisible'
href={`#${createSlug(headingText)}`}>#</Link>
</Component>
)