Skip to content

Commit

Permalink
Fix issues badly, need to work out why theme is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
owenniblock committed Apr 17, 2024
1 parent 03fa895 commit 889a106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions theme/src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ function PrimerNavItems({siteMetadata, items, path, pathPrefix}) {
<UnderlineNav aria-label="Main navigation" sx={{border: 'none'}}>
{items.map((item, index) => {
return (
<UnderlineNav.Link
<UnderlineNav.Item
key={index}
href={item.url}
selected={item.url === siteMetadata.header.url + (pathPrefix || '') + (path || '')}
sx={{fontSize: 2, lineHeight: 'condensed'}}
>
{item.title}
</UnderlineNav.Link>
</UnderlineNav.Item>
)
})}
</UnderlineNav>
Expand Down
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 889a106

Please sign in to comment.