Skip to content

Commit

Permalink
coderabbitai suggestion card CardTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Nov 23, 2024
1 parent 8c0b3b1 commit 9f16d3b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/ui/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import * as React from "react";
import { cn } from "@/lib/utils";

const Card = React.forwardRef<
HTMLHeadingElement,
React.HTMLAttributes<HTMLHeadingElement>
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<h2
<div
ref={ref}
className={cn(
"rounded-xl border border-gray-200 bg-white text-gray-950 shadow dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50",
Expand All @@ -30,12 +30,13 @@ const CardHeader = React.forwardRef<
CardHeader.displayName = "CardHeader";

const CardTitle = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
HTMLHeadingElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
<div
<h2
ref={ref}
className={cn("font-semibold leading-none tracking-tight", className)}
aria-description="true"
{...props}
/>
));
Expand Down

0 comments on commit 9f16d3b

Please sign in to comment.