Skip to content

Commit

Permalink
fix(): Update styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 11, 2024
1 parent 0a7337c commit 162613c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion src/shadcn/ui/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@ import { cn } from "src/utils"

const DropdownMenu = DropdownMenuPrimitive.Root

const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger




const DropdownMenuTrigger = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Trigger>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Trigger
ref={ref}
className={cn("bg-paper", className)}
{...props}
/>
))
DropdownMenuTrigger.displayName = DropdownMenuPrimitive.Trigger.displayName

const DropdownMenuGroup = DropdownMenuPrimitive.Group

Expand Down
2 changes: 1 addition & 1 deletion src/shadcn/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const TableRow = React.forwardRef<
<tr
ref={ref}
className={cn(
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted bg-paper",
className
)}
{...props}
Expand Down

0 comments on commit 162613c

Please sign in to comment.