Open AucT opened 6 years ago
Good shout, @nchan0154!
What would an ideal solution look like to you? Typically I would style it the same as how other buttons are styled.
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.
WTF, forms? is only css. To my knowledge, the filename can't be put in a custom element without javascript.
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.
Add support for file input