Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File selector can be styled #36090

Open
Asmatzaile opened this issue Sep 28, 2024 · 1 comment
Open

File selector can be styled #36090

Asmatzaile opened this issue Sep 28, 2024 · 1 comment
Labels
Content:Learn:Forms Learning area Forms docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@Asmatzaile
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/Forms/Advanced_form_styling

What specific section or headline is this issue about?

File input types

What information was incorrect, unhelpful, or incomplete?

"The only problem with file pickers is that the button provided that you press to open the file picker is completely unstylable — it can't be sized or colored, and it won't even accept a different font."

What did you expect to see?

It is true that the button is unstylable -but there is a pseudoelement, ::file-selector-button, that lets us style it.

Do you have any supporting links, references, or citations?

https://developer.mozilla.org/en-US/docs/Web/CSS/::file-selector-button

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@Asmatzaile Asmatzaile added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Sep 28, 2024
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:Learn:Forms Learning area Forms docs labels Sep 28, 2024
@Asmatzaile
Copy link
Author

https://developer.mozilla.org/en-US/docs/Learn/Forms/Styling_web_forms has thus also incorrect information. Should <input type="file"> be moved out of the "Having internals can't be styled in CSS alone" section to the "Harder-to-style" section; and in the original page linked in the issue, moved from 'the ugly' to 'the bad'?

I will wait for some community feedback before opening a PR :)

@Josh-Cena Josh-Cena removed the Content:CSS Cascading Style Sheets docs label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:Forms Learning area Forms docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants