Skip to content

Commit

Permalink
fix: add cursor-pointer to elements by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Jul 29, 2024
1 parent eeb5828 commit a260852
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const DropdownMenuItem = forwardRef<
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
"relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
inset && "pl-8",
className,
)}
Expand All @@ -81,7 +81,7 @@ const DropdownMenuCheckboxItem = forwardRef<
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
className={cn(
"relative flex select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
className,
)}
checked={checked}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.133",
"version": "0.0.134",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down Expand Up @@ -35,7 +35,7 @@
"class-variance-authority": "0.7.1-canary.2",
"clsx": "2.1.1",
"cmdk": "1.0.0",
"lucide-react": "0.416.0",
"lucide-react": "0.417.0",
"next-themes": "0.3.0",
"radash": "12.1.0",
"react-hook-form": "7.52.1",
Expand All @@ -46,11 +46,11 @@
"tailwind-merge": "2.4.0",
"tailwindcss": "3.4.7",
"tailwindcss-animate": "1.0.7",
"typescript": "5.6.0-dev.20240726",
"typescript": "5.6.0-dev.20240729",
"vaul": "0.9.1"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@biomejs/biome": "1.8.4-nightly.a579bf7",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/react-hooks": "8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const SelectItem = forwardRef<
<SelectPrimitive.Item
ref={ref}
className={cn(
"relative flex w-full select-none items-center rounded-sm py-1.5 pr-8 pl-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-pointer select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
className,
)}
{...rest}
Expand Down

0 comments on commit a260852

Please sign in to comment.