Skip to content

Commit

Permalink
Improve list item indentation (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkas authored Sep 21, 2023
1 parent f2f6adb commit 006f715
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/ui/app/src/mdx/base-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,26 +267,26 @@ export const P: React.FC<{ variant: "api" | "markdown" } & HTMLAttributes<HTMLPa
);
};

export const Ol: React.FC<HTMLAttributes<HTMLOListElement>> = ({ className, ...rest }) => {
return <ol {...rest} className={classNames(className, "list-inside list-decimal space-y-2 mb-3")} />;
};

export const Strong: React.FC<HTMLAttributes<unknown>> = ({ className, ...rest }) => {
return (
<strong
{...rest}
className={classNames(className, " !text-text-primary-light dark:!text-text-primary-dark font-semibold")}
className={classNames(className, "!text-text-primary-light dark:!text-text-primary-dark font-semibold")}
/>
);
};

export const Ol: React.FC<HTMLAttributes<HTMLOListElement>> = ({ className, ...rest }) => {
return <ol {...rest} className={classNames(className, "list-outside list-decimal space-y-2 mb-3 ml-6")} />;
};

export const Ul: React.FC<HTMLAttributes<HTMLUListElement>> = ({ className, ...rest }) => {
return (
<ul
{...rest}
className={classNames(
className,
"list-image-dash-light dark:list-image-dash-dark list-inside space-y-2 mb-3"
"list-image-dash-light list-outside dark:list-image-dash-dark space-y-2 mb-3 ml-[22px]" // 22px is the width of the dash svg
)}
/>
);
Expand Down

1 comment on commit 006f715

@vercel
Copy link

@vercel vercel bot commented on 006f715 Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fern-dev – ./packages/ui/fe-bundle

fern-dev-buildwithfern.vercel.app
fern-dev-git-main-buildwithfern.vercel.app
devtest.buildwithfern.com
app-dev.buildwithfern.com

Please sign in to comment.