@primer/doctocat-nextjs 0.5.6-rc.ac8cfa2 → 0.5.7-rc.c059213
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,10 +1,18 @@
|
|
|
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
|
|
6
12
|
|
|
7
|
-
- [`
|
|
13
|
+
- [#56](https://github.com/primer/doctocat-nextjs/pull/56) [`e6a55fa`](https://github.com/primer/doctocat-nextjs/commit/e6a55fab3eb3fd56cbb20fe85a31751e6c227fc5) Thanks [@danielguillan](https://github.com/danielguillan)! - Updated theme switcher aria label
|
|
14
|
+
|
|
15
|
+
- [#54](https://github.com/primer/doctocat-nextjs/pull/54) [`a57f42f`](https://github.com/primer/doctocat-nextjs/commit/a57f42fec69d142e4dd1dc33129ce2423651e907) Thanks [@danielguillan](https://github.com/danielguillan)! - Fixed a bug that caused breadcrumbs to display an incorrect title for pages with tabs
|
|
8
16
|
|
|
9
17
|
## 0.5.5
|
|
10
18
|
|
|
@@ -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>
|
|
@@ -120,7 +119,7 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
120
119
|
<IconButton
|
|
121
120
|
icon={colorMode === 'light' ? SunIcon : MoonIcon}
|
|
122
121
|
variant="invisible"
|
|
123
|
-
aria-label={`
|
|
122
|
+
aria-label={`Switch to ${colorMode === 'light' ? 'dark' : 'light'} mode`}
|
|
124
123
|
onClick={() => setColorMode(colorMode === 'light' ? 'dark' : 'light')}
|
|
125
124
|
/>
|
|
126
125
|
<IconButton
|