@primer/doctocat-nextjs 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @primer/doctocat-nextjs
|
|
2
2
|
|
|
3
|
+
## 0.5.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ba3188c`](https://github.com/primer/doctocat-nextjs/commit/ba3188cfc115d9a2e6d4b7402c20240f518eacd5) Thanks [@rezrah](https://github.com/rezrah)! - Switch to using native <a> instead of <Link> for header URLs, which prevents prefetching-related errors.
|
|
8
|
+
|
|
3
9
|
## 0.5.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -13,7 +13,6 @@ import {Stack, Text} from '@primer/react-brand'
|
|
|
13
13
|
import {clsx} from 'clsx'
|
|
14
14
|
import type {PageMapItem} from 'nextra'
|
|
15
15
|
|
|
16
|
-
import Link from 'next/link'
|
|
17
16
|
import styles from './Header.module.css'
|
|
18
17
|
import {NavDrawer} from '../nav-drawer/NavDrawer'
|
|
19
18
|
import {useNavDrawerState} from '../nav-drawer/useNavDrawerState'
|
|
@@ -58,12 +57,12 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
58
57
|
aria-label="Header Navigation"
|
|
59
58
|
>
|
|
60
59
|
<div className={styles.Header__start}>
|
|
61
|
-
<
|
|
60
|
+
<a href="/" className={styles.Header__siteTitle}>
|
|
62
61
|
<MarkGithubIcon size={24} />
|
|
63
62
|
<Text className={styles.Header__siteTitleText} as="p" size="200" weight="semibold">
|
|
64
63
|
{siteTitle}
|
|
65
64
|
</Text>
|
|
66
|
-
</
|
|
65
|
+
</a>
|
|
67
66
|
<Text as="span" className={styles.Header__separator} weight="semibold" aria-hidden>
|
|
68
67
|
/
|
|
69
68
|
</Text>
|
|
@@ -73,7 +72,7 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
73
72
|
<ul className={styles.Header__links}>
|
|
74
73
|
{headerLinks.map(link => (
|
|
75
74
|
<li key={link.href}>
|
|
76
|
-
<
|
|
75
|
+
<a
|
|
77
76
|
className={styles.Header__link}
|
|
78
77
|
href={link.href}
|
|
79
78
|
aria-current={link.isActive ? 'page' : undefined}
|
|
@@ -93,7 +92,7 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
93
92
|
/>
|
|
94
93
|
)}
|
|
95
94
|
</Text>
|
|
96
|
-
</
|
|
95
|
+
</a>
|
|
97
96
|
</li>
|
|
98
97
|
))}
|
|
99
98
|
</ul>
|