boilerform icon indicating copy to clipboard operation
boilerform copied to clipboard

Add support for file input

Open AucT opened this issue 6 years ago • 5 comments

Add support for file input

AucT avatar Feb 03 '18 15:02 AucT

Good shout, @nchan0154!

Andy-set-studio avatar Feb 03 '18 18:02 Andy-set-studio

What would an ideal solution look like to you? Typically I would style it the same as how other buttons are styled.

nchan0154 avatar Feb 05 '18 06:02 nchan0154

I think that's a good call @nchan0154. I think that we'd want to replicate the 'no file chosen' label/status too.

The "File Browser" on WTF forms is decent, but the state doesn't change when a file is added.

Andy-set-studio avatar Feb 05 '18 09:02 Andy-set-studio

WTF, forms? is only css. To my knowledge, the filename can't be put in a custom element without javascript.

tcaruth avatar Feb 05 '18 21:02 tcaruth

Yeh I thought that might be the case and it’s something I’m not averse to. We’ve already got modular setup with the JavaScript, so we could add some progressive enhancements where needed.

The label’s visibility could be based on the <html> element having a js class, or not having a no-js class.

Andy-set-studio avatar Feb 05 '18 22:02 Andy-set-studio