mblode / marx

The classless CSS reset (perfect for Communists).
https://mblode.github.io/marx/
MIT License
1.69k stars 101 forks source link

Style file inputs with ::file-selector-button/::-webkit-file-upload-button #56

Open easrng opened 3 years ago

easrng commented 3 years ago

Is your feature request related to a problem? Please describe. I don't like how the default file inputs and buttons look, marx fixes input buttons and button tags, but not the "Choose File" button.

Describe the solution you'd like I would like to add input[type=file]::-webkit-file-upload-button, input[type=file]::file-selector-button to the selectors for the button styles.

Describe alternatives you've considered I am currently using JS to make buttons that .click() the file inputs, but then I have to do more work

Additional context MDN has docs on this. I would send a PR myself, but it's not clear which files are the source files. Maybe add that to the contributing section?

jalcine commented 2 years ago

Looks like these changes would happen at https://github.com/mblode/marx/blob/main/src/_form.css