@primer/doctocat-nextjs 0.0.2 → 0.0.3-rc.4b671a6
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.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7703a7b`](https://github.com/primer/doctocat-nextjs/commit/7703a7b86bc906ff981a7f864a9916c963a35087) Thanks [@rezrah](https://github.com/rezrah)! - Fixed code bg in dark mode and applied fixed width to toc to prevent layout shift
|
|
8
|
+
|
|
3
9
|
## 0.0.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -54,6 +54,8 @@ export function TableOfContents({headings}: TableOfContentsProps) {
|
|
|
54
54
|
}
|
|
55
55
|
}, [depth2Headings])
|
|
56
56
|
|
|
57
|
+
if (!depth2Headings.length) return null
|
|
58
|
+
|
|
57
59
|
return (
|
|
58
60
|
<aside className={styles.wrapper}>
|
|
59
61
|
<Text as="p" size="100" variant="muted" weight="normal" className={styles.heading}>
|
package/css/prose.module.css
CHANGED
|
@@ -224,6 +224,10 @@
|
|
|
224
224
|
background-color: var(--base-color-scale-indigo-0);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
[data-color-mode='dark'] .Prose code {
|
|
228
|
+
background-color: var(--base-color-scale-indigo-9);
|
|
229
|
+
}
|
|
230
|
+
|
|
227
231
|
/* ---------------------------------------------------------- */
|
|
228
232
|
/* 8. Images */
|
|
229
233
|
/* ---------------------------------------------------------- */
|