Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Input Enhancement #171

Open
2 tasks done
jdinh8124 opened this issue Oct 24, 2022 · 0 comments
Open
2 tasks done

File Input Enhancement #171

jdinh8124 opened this issue Oct 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jdinh8124
Copy link
Collaborator

Type of Issue:

  • Enhancement: New feature or request

Issue Creator Checklist

  • This issue has been thoroughly documented below; a developer should be able to understand the issue by reading it.

Background

The File Input component was created using the USWDS implementation and JS.

Proposed Approach

As it is in our React component library, we based the file component off the USWDS implementation and the FIGMA. There are a few proposed UX/UI enhancements on top of the existing code that would create a better experience

  • The USWDS drop indicator once we have files queued up isn’t really sufficient, it could display a better visual feedback
  • We can only replace all files at once, and not one by one
  • There is no remove files button
  • Dropping a new file replaces all of the previous files. See if there's a way to continue to drop more files as we go along

Value

As is, the file input only works as a one time use file input, and it is not something that a use can continue to iterate upon such as going back to add additional files as needed.

Docs

Original Figma
USWDS Component

@jdinh8124 jdinh8124 added the enhancement New feature or request label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant