wtforms / flask-wtf

Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.
https://flask-wtf.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.46k stars 310 forks source link

Can't theme the actual button on FileInput field #554

Closed jessielw closed 1 year ago

jessielw commented 1 year ago

No matter how I select the button it only changes the words beside it. The button cannot be changed regardless of what I've tried and searched on stack overflow/reddit/documentation.

image

davidism commented 1 year ago

That's a general HTML and CSS problem, not specific to WTForms.

Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.

jessielw commented 1 year ago

NVM I see the issue. I apologize! Thanks and sorry to bother you.

For anyone else coming across this. The default <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> has this same limitaton.