Skip to content

Commit

Permalink
Style changes: Card and Select (#65)
Browse files Browse the repository at this point in the history
* Card

* Style changes

* Card content spacing
  • Loading branch information
dani-moreno authored Apr 15, 2024
1 parent 566ce8b commit 7f39097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/foundations/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const CardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
<div ref={ref} className={cn("p-6", className)} {...props} />
))
CardContent.displayName = "CardContent"

Expand Down
4 changes: 2 additions & 2 deletions lib/foundations/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ const SelectItem = React.forwardRef<
<SelectPrimitive.Item
ref={ref}
className={cn(
"relative flex w-full cursor-default select-none items-center rounded-md py-2 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
"relative flex w-full cursor-default select-none items-center rounded-md py-2 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
className
)}
{...props}
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
<SelectPrimitive.ItemIndicator>
<Check className="h-4 w-4" />
</SelectPrimitive.ItemIndicator>
Expand Down

0 comments on commit 7f39097

Please sign in to comment.