Skip to content

Make a button version of the file picker #1987

@ryankeairns

Description

@ryankeairns

In cases, such as the Kibana workpad loader/home page, the file picker input is being used more like a button outside of a form. To avoid max-width hacks overriding the 400px limit and to simply have the file picker appear more like an EuiButton, we would like to add a button version of the filer picker input. (see discussion below).

Would this button version basically then be a file picker that looks/acts like a button, opens the file finder, and doesn't allow for drag and drop?

Meaning. We currently have a file input that is primary styled for being in forms. Which is why it acts form-like, with a max width. When it's used like this, on its own outside of a form, my guess is that it should look like a regular old EuiButton and behave like one.

It can still support drag and drop and show the file name, it should just look like a button so that it works better in these situations.

Originally posted by @snide in elastic/kibana#37345

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions