Remove color style for list items, and change first-child to first-of-type based on console error for SSR (#127)

This commit is contained in:
Corwin Smith 2022-12-05 21:17:11 +01:00 committed by GitHub
parent 04adbb749b
commit 26673626d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ const MDComponents = {
);
},
li: ({ children }: any) => {
return <ListItem color='primary'>{children}</ListItem>;
return <ListItem>{children}</ListItem>;
},
note: ({ children }: any) => {
return <Note>{children}</Note>;

View File

@ -116,7 +116,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
</Stack>
<Flex width='100%' placeContent='space-between' gap={8}>
<Stack maxW='768px' sx={{ "*:first-child": { marginTop: '0 !important' } }}>
<Stack maxW='768px' sx={{ "*:first-of-type": { marginTop: '0 !important' } }}>
<ReactMarkdown
remarkPlugins={[gfm]}
rehypePlugins={[rehypeRaw]}