Skip to content

Commit 85f04e3

Browse files
Merge pull request #329 from softnetics/supakorn/fix/dropzone
fix: add background color for `dropzone`.
2 parents 2e35024 + f2e8dab commit 85f04e3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/true-taxes-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@genseki/ui': patch
3+
---
4+
5+
add background color for `dropzone`.

packages/ui/src/components/primitives/drop-zone.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const DropZoneArea = (
182182
data-file-dialog-active={dropzoneCtx.isFileDialogActive}
183183
data-disabled={dropzoneCtx.disabled}
184184
className={cn(
185-
'group/dropzone relative h-auto w-full flex-col overflow-hidden rounded-md border border-dashed p-12',
185+
'bg-background group/dropzone relative h-auto w-full flex-col overflow-hidden rounded-md border border-dashed p-12',
186186
'data-[drag-active=true]:ring-ring ring-offset-2 data-[drag-active=true]:outline-none data-[drag-active=true]:ring-[2px]',
187187
'data-[disabled=true]:bg-surface-primary-disabled',
188188
props.className
@@ -260,7 +260,7 @@ export const DropZoneEmptyUploadButton = ({
260260
variant="outline"
261261
asChild
262262
className={cn(
263-
'group-data-[disabled=true]/dropzone:bg-surface-primary-disabled group-data-[disabled=true]/dropzone:active:bg-surface-primary-disabled group-data-[disabled=true]/dropzone:cursor-default',
263+
'group-hadata-[disabled=true]/dropzone:bg-surface-primary-disabled group-data-[disabled=true]/dropzone:active:bg-surface-primary-disabled group-data-[disabled=true]/dropzone:cursor-default',
264264
className
265265
)}
266266
children={

0 commit comments

Comments
 (0)