Skip to content

Commit 2fb7188

Browse files
💄 remove border-transparent on color picker which glitch on gradient
1 parent 2ac92f1 commit 2fb7188

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ui/cuicui/application-ui/color-picker/arc-color-picker/arc-color-picker.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export const PreviewColor = ({
169169
}: { selectedColor: string; intensity: number }) => {
170170
return (
171171
<div className="flex justify-center">
172-
<div className="relative size-16 rounded-full border-white dark:border-neutral-950 shadow-neutral-400/50 dark:shadow-none shadow-xl overflow-hidden border-4">
172+
<div className="relative size-16 rounded-full border-white dark:border-white/80 shadow-neutral-400/50 dark:shadow-none shadow-xl overflow-hidden border-4">
173173
<div
174174
className="size-full opacity-50 z-10"
175175
style={{ background: selectedColor }}
@@ -197,10 +197,10 @@ const ColorSwatches = ({
197197
key={`${index}-${color}`}
198198
onClick={() => handleColorSelect(color)}
199199
className={cn(
200-
"size-8 rounded-full border-2 transition-transform hover:scale-110",
200+
"size-8 rounded-full transition-transform hover:scale-110",
201201
selectedColor === color.value
202-
? "border-white dark:border-black shadow-lg"
203-
: "border-transparent",
202+
? "border-2 border-white shadow-lg"
203+
: "outline-transparent",
204204
)}
205205
style={{ background: color.value }}
206206
/>

0 commit comments

Comments
 (0)