From 3da5b1344d69ae391d90e070edb9883640a0adc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= <14854048+kripod@users.noreply.github.com> Date: Sun, 19 May 2024 01:53:33 +0200 Subject: [PATCH] refactor(PrimaryButton): simplify text sizing --- src/components/PrimaryButton.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PrimaryButton.tsx b/src/components/PrimaryButton.tsx index 9f773ab..ebd4e6b 100644 --- a/src/components/PrimaryButton.tsx +++ b/src/components/PrimaryButton.tsx @@ -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} />