Skip to content

Commit

Permalink
Fix mdx.tsx build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrginglymus committed Dec 14, 2024
1 parent 844ef0e commit 9738e9a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions code/lib/blocks/src/blocks/mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,17 @@ const OcticonHeaders = SUPPORTED_MDX_HEADERS.reduce(
{}
);

const OcticonAnchor = styled.a(() => ({
float: 'left',
lineHeight: 'inherit',
paddingRight: '10px',
marginLeft: '-24px',
// Allow the theme's text color to override the default link color.
color: 'inherit',
}));
const OcticonAnchor = styled.a(
() =>
({
float: 'left',
lineHeight: 'inherit',
paddingRight: '10px',
marginLeft: '-24px',
// Allow the theme's text color to override the default link color.
color: 'inherit',
}) as const
);

interface HeaderWithOcticonAnchorProps {
as: string;
Expand Down

0 comments on commit 9738e9a

Please sign in to comment.