From 0798937ceb981c88abc95e428a1d73e3237a6460 Mon Sep 17 00:00:00 2001 From: Daniel Adams Date: Mon, 22 Apr 2024 17:56:50 +0200 Subject: [PATCH] Add changeset (#727) * Remove null check, we'd rather it fails if theme is wonky * Add changeset --- .changeset/fresh-yaks-battle.md | 5 +++++ theme/src/components/live-code.js | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .changeset/fresh-yaks-battle.md diff --git a/.changeset/fresh-yaks-battle.md b/.changeset/fresh-yaks-battle.md new file mode 100644 index 00000000..1ae88b23 --- /dev/null +++ b/.changeset/fresh-yaks-battle.md @@ -0,0 +1,5 @@ +--- +'@primer/gatsby-theme-doctocat': minor +--- + +Add optional tracking option to head diff --git a/theme/src/components/live-code.js b/theme/src/components/live-code.js index 8062033d..a93d13f6 100644 --- a/theme/src/components/live-code.js +++ b/theme/src/components/live-code.js @@ -106,15 +106,15 @@ function LiveCode({code, language, highlight, noinline, metastring}) { onChange={handleChange} theme={githubTheme} ignoreTabKey={true} - padding={theme?.space[3]} + padding={theme.space[3]} style={{ - fontFamily: theme?.fonts.mono, + fontFamily: theme.fonts.mono, fontSize: '85%', - borderBottomLeftRadius: theme?.radii[2], - borderBottomRightRadius: theme?.radii[2], + borderBottomLeftRadius: theme.radii[2], + borderBottomRightRadius: theme.radii[2], border: '1px solid', borderTop: 0, - borderColor: theme?.colors.border.default, + borderColor: theme.colors.border.default, }} />