Skip to content

Commit

Permalink
fix: callout causing bug in prod (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman authored Nov 29, 2024
1 parent 74ef657 commit 230efca
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/markdoc/components/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,15 @@ function MarkdocCallout({
)
}

const StyledCallout = styled(MarkdocCallout)`
${({ theme }) => ({
marginTop: theme.spacing.xlarge,
marginBottom: theme.spacing.xlarge,
color: theme.colors['text-light'],
})}
const StyledCallout = styled(MarkdocCallout)(({ theme }) => ({
marginTop: theme.spacing.xlarge,
marginBottom: theme.spacing.xlarge,
color: theme.colors['text-light'],

${Paragraph}, ${ListItem} {
${({ theme }) => ({
...theme.partials.text.body2,
color: theme.colors['text-light'],
})}
}
`
[`${Paragraph}, ${ListItem}`]: {
...theme.partials.text.body2,
color: theme.colors['text-light'],
},
}))

export default StyledCallout

0 comments on commit 230efca

Please sign in to comment.