Skip to content

Commit 1924b6a

Browse files
committed
fix: remove unnecessary arbitrary values
1 parent d1a5f4d commit 1924b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/src/components/Link/Link.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { cn } from "utils/cn";
66

77
export const linkVariants = cva(
88
`relative inline-flex items-center no-underline font-medium text-content-link hover:cursor-pointer
9-
after:hover:content-[''] after:hover:absolute after:hover:left-0 after:hover:w-full after:hover:h-[1px] after:hover:bg-current after:hover:bottom-px
9+
after:hover:content-[''] after:hover:absolute after:hover:left-0 after:hover:w-full after:hover:h-px after:hover:bg-current after:hover:bottom-px
1010
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-content-link
1111
focus-visible:ring-offset-2 focus-visible:ring-offset-surface-primary focus-visible:rounded-sm
12-
visited:text-content-link pl-[2px]`, //pl-[2px] adjusts the underline spacing to align with the icon on the right.
12+
visited:text-content-link pl-0.5`, //pl-[2px] adjusts the underline spacing to align with the icon on the right.
1313
{
1414
variants: {
1515
size: {
16-
lg: "text-sm gap-[2px] [&_svg]:size-icon-sm [&_svg]:p-[2px] leading-6",
17-
sm: "text-xs gap-1 [&_svg]:size-icon-xs [&_svg]:p-[1px] leading-[18px]",
16+
lg: "text-sm gap-0.5 [&_svg]:size-icon-sm [&_svg]:p-0.5 leading-6",
17+
sm: "text-xs gap-1 [&_svg]:size-icon-xs [&_svg]:p-px leading-[18px]",
1818
},
1919
},
2020
defaultVariants: {

0 commit comments

Comments
 (0)