@primer/doctocat-nextjs 0.0.0-20260121102624 → 0.0.0-20260121113309

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,16 +1,16 @@
1
1
  # @primer/doctocat-nextjs
2
2
 
3
- ## 0.0.0-20260121102624
3
+ ## 0.0.0-20260121113309
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Fake entry to force publishing
8
8
 
9
- ## 0.0.0-20260121102622
9
+ ## 0.0.0-20260121113307
10
10
 
11
11
  ### Patch Changes
12
12
 
13
- - [#83](https://github.com/primer/doctocat-nextjs/pull/83) [`3b5fd59`](https://github.com/primer/doctocat-nextjs/commit/3b5fd59c47a1c86030457daa92b557f65e2e13ff) Thanks [@danielguillan](https://github.com/danielguillan)! - Remove underlines from header links
13
+ - [#83](https://github.com/primer/doctocat-nextjs/pull/83) [`3c3b1a9`](https://github.com/primer/doctocat-nextjs/commit/3c3b1a95ff8a301ea81b67f393aad7a0d4ab52f9) Thanks [@danielguillan](https://github.com/danielguillan)! - Remove underlines from header links
14
14
 
15
15
  - [#80](https://github.com/primer/doctocat-nextjs/pull/80) [`772d8de`](https://github.com/primer/doctocat-nextjs/commit/772d8de1b580f7158262f313952227e282035003) Thanks [@danielguillan](https://github.com/danielguillan)! - Improves accessibility of anchor links by adding an underline
16
16
 
@@ -96,13 +96,12 @@
96
96
  }
97
97
  }
98
98
 
99
- .Header a.Header__siteTitle,
100
- .Header a.Header__siteTitle:hover {
99
+ .Header__siteTitle {
101
100
  display: flex;
102
101
  gap: var(--base-size-8);
103
102
  align-items: center;
104
103
  margin-inline-end: auto;
105
- text-decoration: none;
104
+ text-decoration: none !important; /* Override @primer/react link styles */
106
105
  }
107
106
 
108
107
  .Header__siteTitle svg {
@@ -124,15 +123,15 @@
124
123
  gap: var(--base-size-2);
125
124
  }
126
125
 
127
- .Header a.Header__link {
128
- text-decoration: none;
126
+ .Header__link {
127
+ text-decoration: none !important; /* Override @primer/react link styles */
129
128
  font-size: var(--base-font-size-16);
130
129
  font-weight: var(--base-font-weight-500);
131
130
  padding: var(--base-size-6) var(--base-size-12);
132
131
  border-radius: var(--brand-borderRadius-small);
133
132
  }
134
133
 
135
- .Header a.Header__link:hover {
134
+ .Header__link:hover {
136
135
  background-color: var(--brand-color-canvas-subtle);
137
136
  }
138
137
 
@@ -92,22 +92,22 @@
92
92
  border-radius: var(--brand-borderRadius-medium);
93
93
  }
94
94
 
95
- .dropdown a.link:focus-visible {
95
+ .link:focus-visible {
96
96
  position: relative;
97
97
  outline: var(--base-size-4) solid var(--brand-color-focus);
98
98
  border-radius: var(--brand-borderRadius-small);
99
99
  z-index: 1;
100
100
  }
101
101
 
102
- .dropdown a.link {
102
+ .link {
103
103
  display: block;
104
104
  padding: var(--base-size-6) var(--base-size-8);
105
- text-decoration: none;
105
+ text-decoration: none !important; /* Override @primer/react link styles */
106
106
  color: var(--brand-color-text-default);
107
107
  cursor: pointer;
108
108
  }
109
109
 
110
- .dropdown a.link:hover {
110
+ .link:hover {
111
111
  background-color: var(--brand-color-canvas-subtle);
112
112
  }
113
113
 
@@ -173,11 +173,8 @@
173
173
  .Prose a:not(:global(.custom-component) a),
174
174
  .Prose a:-webkit-any-link:not(:global(.custom-component) a:-webkit-any-link) {
175
175
  color: var(--brand-InlineLink-color-rest);
176
- position: relative;
177
- }
178
-
179
- .Prose a:hover:not(:global(.custom-component) a:hover) {
180
176
  text-decoration: underline;
177
+ position: relative;
181
178
  }
182
179
 
183
180
  .Prose a::after:not(:global(.custom-component) a::after) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/doctocat-nextjs",
3
- "version": "0.0.0-20260121102624",
3
+ "version": "0.0.0-20260121113309",
4
4
  "description": "A Next.js theme for building Primer documentation sites",
5
5
  "main": "index.js",
6
6
  "type": "module",