Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update OrderedList prop name for styled component #837

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/legacy/markdown/custom-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const UnorderedList = styled.ul`
}
`;

const OrderedList = styled.ol<{ doubleDigit: boolean }>`
const OrderedList = styled.ol<{ $doubleDigit: boolean }>`
line-height: 150%;
padding-left: ${(props) => (props.doubleDigit ? '26px' : '18px')};
padding-left: ${(props) => (props.$doubleDigit ? '26px' : '18px')};
margin: 0 0 16px;

> li > p {
Expand Down Expand Up @@ -194,7 +194,7 @@ const customSatellytesComponents = {
},
ol(props) {
return (
<OrderedList doubleDigit={props.children.length > 9}>
<OrderedList $doubleDigit={props.children.length > 9}>
{props.children}
</OrderedList>
);
Expand Down