Skip to content

Commit

Permalink
Remove null check, we'd rather it fails if theme is wonky
Browse files Browse the repository at this point in the history
  • Loading branch information
owenniblock committed Apr 19, 2024
1 parent 36457de commit fb352a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions theme/src/components/live-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
/>
</LineHighlighter>
Expand Down

0 comments on commit fb352a8

Please sign in to comment.