Skip to content

Commit

Permalink
chore: remove tracking tight
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Apr 4, 2024
1 parent ef79417 commit 46b76d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Alert = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement> & Varian

const AlertTitle = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLHeadingElement>>(
({ className, ...rest }, ref) => (
<h3 ref={ref} className={cn("mb-1 font-medium leading-none tracking-tight", className)} {...rest} />
<h3 ref={ref} className={cn("mb-1 font-medium leading-none", className)} {...rest} />
),
);

Expand Down
4 changes: 1 addition & 3 deletions card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const CardHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(({
));

const CardTitle = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLHeadingElement>>(
({ className, ...rest }, ref) => (
<h2 ref={ref} className={cn("font-semibold leading-none tracking-tight", className)} {...rest} />
),
({ className, ...rest }, ref) => <h2 ref={ref} className={cn("font-semibold leading-none", className)} {...rest} />,
);

const CardDescription = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLParagraphElement>>(
Expand Down
6 changes: 1 addition & 5 deletions dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ const DialogTitle = forwardRef<
ElementRef<typeof DialogPrimitive.Title>,
ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
>(({ className, ...rest }, ref) => (
<DialogPrimitive.Title
ref={ref}
className={cn("font-semibold text-lg leading-none tracking-tight", className)}
{...rest}
/>
<DialogPrimitive.Title ref={ref} className={cn("font-semibold text-lg leading-none", className)} {...rest} />
));

const DialogDescription = forwardRef<
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.38",
"version": "0.0.39",
"sideEffects": false,
"type": "module",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@

/* usually h1 */
.title {
@apply text-3xl font-bold tracking-tight;
@apply text-3xl font-bold;
}

/* usually h2 */
.title-sm {
@apply text-2xl font-semibold tracking-tight;
@apply text-2xl font-semibold;
}

/* usually h3 */
.subtitle {
@apply text-xl font-semibold tracking-tight;
@apply text-xl font-semibold;
}

/* usually h4 */
.subtitle-sm {
@apply text-lg font-medium tracking-tight;
@apply text-lg font-medium;
}

/* Don't use h5/h6 */
Expand Down

0 comments on commit 46b76d9

Please sign in to comment.