Skip to content

Commit 3cfbd43

Browse files
committed
fix anchor href type / render
1 parent f961d94 commit 3cfbd43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SkipLinks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { cx } from "./lib/tools/cx";
77

88
export type SkipLink = {
99
label: string;
10-
anchor: string;
10+
anchor: `${string}`;
1111
};
1212

1313
export type SkipLinksProps = {
@@ -32,7 +32,7 @@ export const SkipLinks = memo(
3232
<li key={link.anchor}>
3333
<a
3434
className={cx(fr.cx("fr-link"), classes.link)}
35-
href={`#${link.anchor}`}
35+
href={link.anchor}
3636
>
3737
{link.label}
3838
</a>

0 commit comments

Comments
 (0)