openui / open-ui

Maintain an open standard for UI and promote its adherence and adoption.
https://open-ui.org
Other
3.56k stars 192 forks source link

Should <input type=file> have an open state? #181

Open mrmckeb opened 4 years ago

mrmckeb commented 4 years ago

This issue comes from this comment: https://github.com/WICG/open-ui/pull/140/files#r468264056

Today, browsers open the system's file picker which blocks user interaction with the window until a selection is made, or the action is cancelled. This may not always be the cases, and for consistency with <select>, it might make sense to add an open state to this input.

An open state would also allow for further design customisations.

una commented 4 years ago

I think an "open" state could be interesting. In addition to the consistency points raised in the PR, one could add unfocus styles to your UI while the user has this open. Would we also want this for the color input type?

mrmckeb commented 4 years ago

I think it makes sense for all inputs that feature some kind of "open" state - agreed @una. And yes, I'm also interested in the styling opportunities this provides.

gregwhitworth commented 3 years ago

This was discussed in the 11/5 telecon and we resolved on yes for both the file input and any control/component that opens a picker/popup type container.

Resolved: All controls/components that have some form of picker appear should have a state of open

github-actions[bot] commented 2 years ago

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.