Quanta DropZone story does not accept gifs

Open Beginner friendly
#484 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, storybook, typescript
Domain
frontend, testing

Research direction

Open packages/quanta/src/components/DropZone/DropZone.stories.tsx at the linked line and check the GIF type in the DropZone story's accepted file types. Change it to the MIME type identified in the issue, image/gif, then run make storybook-start from packages/quanta and drop a GIF into the DropZone story to confirm it is accepted.

Written by the indexing model from the issue text.

Description

01 type: bug 30 needs: triage

Describe the bug
In the Storybook story of the DropZone React component inside the Quanta package, it is wrongly written image.gif instead of 'image/gif'.

https://github.com/plone/aurora/blob/3f7d51510dae6dcbe6e215836ba17131648576d6/packages/quanta/src/components/DropZone/DropZone.stories.tsx#L80

So dropping a .gif file is refused.

To Reproduce
Steps to reproduce the behavior:

  1. cd packages/quanta
  2. make storybook-start
  3. Open DropZone story
  4. Drop on the DropZone a .gif file
image

Expected behavior

image

Software (please complete the following information):

Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.