We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7447777 commit 7f25dd8Copy full SHA for 7f25dd8
1 file changed
src/components/layout/skip-nav.tsx
@@ -1,16 +1,14 @@
1
import { useTranslations } from 'next-intl'
2
3
-import { Link } from '../ui/link'
4
-
5
export function SkipNav() {
6
const t = useTranslations()
7
8
return (
9
- <Link
10
- href={{ hash: 'main-content' }}
+ <a
+ href='#main-content'
11
className='fixed left-4 z-50 -translate-y-20 rounded-4xl border bg-background px-3 py-2 font-medium transition-transform focus:outline-none focus-visible:translate-y-0 focus-visible:ring-3 focus-visible:ring-ring focus-visible:ring-offset-2'
12
>
13
{t('layout.skip-to-main-content')}
14
- </Link>
+ </a>
15
)
16
}
0 commit comments