Skip to content

Commit a63146b

Browse files
committed
Fix bug where Heading anchor didn’t appear in Firefox
+ improve alignment
1 parent 5225c1f commit a63146b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/src/components/Heading.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ const BaseHeading = ({ as: Element = 'h1', id, className, children, ...props }:
3434
{id ? (
3535
<span
3636
className={`
37-
absolute inset-y-0 end-[calc(100%+theme(spacing[2.5]))] my-auto h-min opacity-0 transition
38-
group-hocus-visible-within/heading:opacity-100
37+
absolute end-[calc(100%+theme(spacing[2.5]))] top-0 flex h-[1lh] items-center opacity-0 transition
38+
group-hover/heading:opacity-100
39+
group-has-focus-visible/heading:opacity-100
3940
max-md:hidden
4041
`}
4142
>

0 commit comments

Comments
 (0)