Skip to content

Commit

Permalink
Fix CI issues (#725)
Browse files Browse the repository at this point in the history
* Fix initial CI issue

* Linting

* Fix naming error

* Fix issues badly, need to work out why theme is empty

* Fix components used on contributing page

* Roll back styled-components to v5

* Remove null check, we'd rather it fails if theme is wonky

---------

Co-authored-by: Owen Niblock <[email protected]>
  • Loading branch information
owenniblock and Owen Niblock authored Apr 19, 2024
1 parent bfa14b3 commit bce195c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 80 deletions.
81 changes: 7 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"react-measure": "^2.3.0",
"read-pkg-up": "^6.0.0",
"sentence-case": "^2.1.1",
"styled-components": "^6.1.0",
"styled-components": "^5.3.11",
"styled-system": "^5.0.18",
"worker-loader": "^3.0.2"
}
Expand Down
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
3 changes: 3 additions & 0 deletions theme/src/components/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ const List = styled.ul`
}
`

export const UL = List
export const OL = styled(List).attrs({as: 'ol'})``

export default List
6 changes: 3 additions & 3 deletions theme/src/components/wrap-root-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import HorizontalRule from './horizontal-rule'
import Image from './image'
import ImageContainer from './image-container'
import InlineCode from './inline-code'
import List from './list'
import {OL, UL} from './list'
import Note from './note'
import Paragraph from './paragraph'
import Superscript from './superscript'
Expand All @@ -37,8 +37,8 @@ const components = {
h4: H4,
h5: H5,
h6: H6,
ul: List,
ol: List.withComponent('ol'),
ul: UL,
ol: OL,
dl: DescriptionList,

// Custom components
Expand Down

0 comments on commit bce195c

Please sign in to comment.