diff --git a/code/lib/blocks/src/blocks/mdx.tsx b/code/lib/blocks/src/blocks/mdx.tsx index 09d8cff33465..eaefd53369e4 100644 --- a/code/lib/blocks/src/blocks/mdx.tsx +++ b/code/lib/blocks/src/blocks/mdx.tsx @@ -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;