Skip to content

Commit

Permalink
refactor(PrimaryButton): simplify text sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed May 18, 2024
1 parent bfd330a commit 3da5b13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/PrimaryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export const PrimaryButton = forwardRefWithGenerics(function PrimaryButton<
className={clsx(
className,
{
"h-8 px-3 text-sm leading-none": size === "sm",
"h-10 px-4 text-base leading-none": size === "md",
"h-14 px-6 text-xl leading-none": size === "lg",
"h-8 px-3 text-sm/none": size === "sm",
"h-10 px-4 text-base/none": size === "md",
"h-14 px-6 text-xl/none": size === "lg",
},
"inline-flex items-center justify-center rounded-lg bg-ui-primary-3 text-center font-semibold text-ui-primary-0 transition-colors hover:bg-ui-primary-4",
"inline-flex items-center justify-center rounded-lg bg-ui-primary-3 text-center text-ui-primary-0 transition-colors hover:bg-ui-primary-4",
)}
{...props}
/>
Expand Down

0 comments on commit 3da5b13

Please sign in to comment.