Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 3e453f5

Browse files
committed
fix(docz-theme-default): show heading anchor on hover
1 parent 9114f9b commit 3e453f5

File tree

1 file changed

+2
-2
lines changed
  • core/docz-theme-default/src/components/ui

1 file changed

+2
-2
lines changed

core/docz-theme-default/src/components/ui/H2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ const Heading = styled('h2')`
2424
padding-bottom: 5px;
2525
${p => mq(get('styles.h2')(p))};
2626
27-
&:hover ${Icon.toString()} {
27+
&:hover .heading--Icon {
2828
opacity: 1;
2929
}
3030
`
3131

3232
export const H2: SFC<React.HTMLAttributes<any>> = ({ children, ...props }) => (
3333
<Heading {...props}>
3434
<Link aria-hidden to={{ hash: `#${props.id}` }}>
35-
<Icon height={20} />
35+
<Icon className="heading--Icon" height={20} />
3636
</Link>
3737
{children}
3838
</Heading>

0 commit comments

Comments
 (0)