@primer/gatsby-theme-doctocat 4.6.0 → 4.6.1
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 +7 -0
- package/package.json +1 -1
- package/src/components/header.js +6 -1
- package/src/components/nav-drawer.js +4 -3
- package/src/primer-nav.yml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @primer/gatsby-theme-doctocat
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e2cd01a`](https://github.com/primer/doctocat/commit/e2cd01a79e668c21a762e82a5f1b914be0d0c5b6) [#613](https://github.com/primer/doctocat/pull/613) Thanks [@josepmartins](https://github.com/josepmartins)! - - Fix the primer navigation about link
|
|
8
|
+
- Removes mono space font in the nav drawer + fontweight bold to match top left navigation
|
|
9
|
+
|
|
3
10
|
## 4.6.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/package.json
CHANGED
package/src/components/header.js
CHANGED
|
@@ -147,7 +147,12 @@ function PrimerNavItems({siteMetadata, items, path}) {
|
|
|
147
147
|
<UnderlineNav aria-label="main navigation" sx={{border: 'none'}}>
|
|
148
148
|
{items.map((item, index) => {
|
|
149
149
|
return (
|
|
150
|
-
<UnderlineNav.Link
|
|
150
|
+
<UnderlineNav.Link
|
|
151
|
+
key={index}
|
|
152
|
+
href={item.url}
|
|
153
|
+
selected={item.url === siteMetadata.header.url + path}
|
|
154
|
+
sx={{fontSize: 2, lineHeight: 'condensed'}}
|
|
155
|
+
>
|
|
151
156
|
{item.title}
|
|
152
157
|
</UnderlineNav.Link>
|
|
153
158
|
)
|
|
@@ -60,7 +60,7 @@ function NavDrawer({isOpen, onDismiss}) {
|
|
|
60
60
|
}}
|
|
61
61
|
>
|
|
62
62
|
<Box sx={{py: 3, pl: 4, pr: 3, alignItems: 'center', justifyContent: 'space-between', display: 'flex'}}>
|
|
63
|
-
<Link href="https://primer.style" sx={{
|
|
63
|
+
<Link href="https://primer.style" sx={{fontWeight: 'bold', color: 'inherit'}}>
|
|
64
64
|
Primer
|
|
65
65
|
</Link>
|
|
66
66
|
<Button aria-label="Close" onClick={onDismiss}>
|
|
@@ -86,7 +86,7 @@ function NavDrawer({isOpen, onDismiss}) {
|
|
|
86
86
|
<Link
|
|
87
87
|
as={GatsbyLink}
|
|
88
88
|
to="/"
|
|
89
|
-
sx={{display: 'inline-block', color: 'inherit',
|
|
89
|
+
sx={{display: 'inline-block', color: 'inherit', fontWeight: 'bold', mx: 4, mt: 4}}
|
|
90
90
|
>
|
|
91
91
|
{siteMetadata.title}
|
|
92
92
|
</Link>
|
|
@@ -111,7 +111,8 @@ function PrimerNavItems({items}) {
|
|
|
111
111
|
borderRadius: 0,
|
|
112
112
|
borderTopWidth: index !== 0 ? 1 : 0,
|
|
113
113
|
borderColor: 'border.muted',
|
|
114
|
-
|
|
114
|
+
px: 4,
|
|
115
|
+
py: 3,
|
|
115
116
|
borderStyle: 'solid'
|
|
116
117
|
}}
|
|
117
118
|
>
|
package/src/primer-nav.yml
CHANGED