Skip to content

Commit ab29ddb

Browse files
authored
Merge pull request #336 from softnetics/tong/fix/drop-zone-empty-button
[Fix] UI: change DropZoneEmptyUploadButton from span to button for better accessibility
2 parents b67c46d + bc52d5a commit ab29ddb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/three-ducks-do.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+
[Fix] UI: change DropZoneEmptyUploadButton from span to button for better accessibility

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ export const DropZoneEmptyUploadButton = ({
264264
className
265265
)}
266266
children={
267-
<span>
267+
<button>
268268
<PaperclipIcon />
269269
<span>Upload {maxFiles === 1 ? 'a file' : 'files'}</span>
270-
</span>
270+
</button>
271271
}
272272
{...props}
273273
/>

0 commit comments

Comments
 (0)