Material-components-web: Investigate how to support file input fields

Created on 5 Dec 2016  路  9Comments  路  Source: material-components/material-components-web

Currently only text input fields will be styled. It would be great to support the styling of file input fields.

If you decide not to support this, than no styling should be done. Because currently it will be styled and the label is over the uplaod button.

input-type-file

Copied from https://github.com/google/material-design-lite/issues/1031

backlog feature-request needs-design-guidance

Most helpful comment

After four years ... Any news?

All 9 comments

@sgomes do we want to prioritize this?

@traviskaufman Sounds useful. Should we run it by the designers first, to make sure this is a good pattern?

@sgomes definitely; it needs design guidance for sure. I know that part of the design team is working on forms in general, and I've let them know about our considerations for file inputs, so they might be tackling this already.

It is unlikely that we will implement this any time soon (if ever), for a number of reasons:

  1. File inputs are not in the spec
  2. They're platform-specific (Web only)
  3. Working around the strict, constantly-shifting browser limitations on styling and interacting with file inputs is a time-consuming nightmare
  4. Other components that are used much more frequently are higher on our priority list

Any news on this?

I assume people working on PWA:s really need this. Any news?

After four years ... Any news?

I guess that what most people are doing now is making an <input type="file"> with opacity: 0 and putting that over something shown to the user. Why not support that? It can't be much work, or?

Hm.. Don't think that 'design-guidance' is really needed. It would be nice to be able to simply change _\

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cintaccs picture cintaccs  路  3Comments

devshekhawat picture devshekhawat  路  3Comments

kimurakenshi picture kimurakenshi  路  3Comments

patrickrodee picture patrickrodee  路  3Comments

ronnieroyston picture ronnieroyston  路  3Comments