Skip to content

Commit 0798937

Browse files
authored
Add changeset (#727)
* Remove null check, we'd rather it fails if theme is wonky * Add changeset
1 parent 5fe6bf8 commit 0798937

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.changeset/fresh-yaks-battle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/gatsby-theme-doctocat': minor
3+
---
4+
5+
Add optional tracking option to head

theme/src/components/live-code.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ function LiveCode({code, language, highlight, noinline, metastring}) {
106106
onChange={handleChange}
107107
theme={githubTheme}
108108
ignoreTabKey={true}
109-
padding={theme?.space[3]}
109+
padding={theme.space[3]}
110110
style={{
111-
fontFamily: theme?.fonts.mono,
111+
fontFamily: theme.fonts.mono,
112112
fontSize: '85%',
113-
borderBottomLeftRadius: theme?.radii[2],
114-
borderBottomRightRadius: theme?.radii[2],
113+
borderBottomLeftRadius: theme.radii[2],
114+
borderBottomRightRadius: theme.radii[2],
115115
border: '1px solid',
116116
borderTop: 0,
117-
borderColor: theme?.colors.border.default,
117+
borderColor: theme.colors.border.default,
118118
}}
119119
/>
120120
</LineHighlighter>

0 commit comments

Comments
 (0)