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

Dropzone (Upload) component #304

Open
Lisa18289 opened this issue Apr 10, 2024 · 0 comments · May be fixed by #1081
Open

Dropzone (Upload) component #304

Lisa18289 opened this issue Apr 10, 2024 · 0 comments · May be fixed by #1081
Assignees
Labels
component A new component

Comments

@Lisa18289
Copy link
Member

Lisa18289 commented Apr 10, 2024

Additional documentation for Dropzone

Description

The Dropzone allows users to easily upload files or images. Users can choose whether to drag and drop a file into the Dropzone or use a file selection dialog to upload it.

Design

The Dropzone consists of a dashed border containing an IllustratedMessage. Since the IllustratedMessage is placed on a gray background, the dark color variant is used here. This choice was made deliberately, as the IllustratedMessage is embedded within a component and should attract less attention than, for example, an IllustratedMessage on an empty page.

To provide users with visual feedback, the drag-hover state is particularly important. When an appropriate file is dragged into the Dropzone, the area changes to the primary color, indicating to the user that the file can be dropped here.

One unique aspect of the Dropzone is that it uses several tokens from FormControls. Since it allows users to make an "input," it can generally be considered a FormControl. However, due to its unique characteristics, the Dropzone is not categorized under FormControls but will instead be found in a new "Upload" category.

Image

Token

--dropzone-corner-radius: var(--size-corner-radius-default);
--dropzone-padding: var(--size-m);
--dropzone-background-color-default: var(--form-control-background-color-default);
--dropzone-background-color-hover: var(--form-control-background-color-hover);
--dropzone-background-color-invalid: var(--form-control-background-color-invalid);
--dropzone-border-color-default: var(--form-control-border-color-default);
--dropzone-border-color-hover: var(--color-primary-color-800);
--dropzone-border-color-invalid: var(--form-control-border-color-invaild);
--dropzone-border-width: var(--size-border-width-100);
@Lisa18289 Lisa18289 added the component A new component label Apr 15, 2024
@Lisa18289 Lisa18289 self-assigned this Jul 3, 2024
@Lisa18289 Lisa18289 linked a pull request Dec 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component A new component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant