-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: added customizable text control to file input #2417
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small things. Ping me to reapprove please. Looks great!
@brandonlenz Ping :) |
id="file-input-single" | ||
name="file-input-single" | ||
dragText="Arrastre el archivo aquí o " | ||
chooseText="elija de una carpeta" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@werdnanoslen FYI There's also error text - still a bit more english in this component looks for "This is not a valid file type.". I just saw this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, just missed it. Started a new issue
## [5.1.0](5.0.0...5.1.0) (2023-07-14) ### Features * added customizable text control to file input ([#2417](#2417)) ([0a387be](0a387be)) * adds unbounded functionality to pagination ([#2418](#2418)) ([f9e7957](f9e7957)) ### Bug Fixes * a11y: adds css to hide search clear button that causes accessibility issues ([#2467](#2467)) ([d19527f](d19527f)) * added error param, test, story ([#2488](#2488)) ([42da85d](42da85d)) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
Adds property to FileInput component to allow text inside component to be customized. Before, it was hardcoded making it inappropriate for mobile and non-English contexts.
Related Issues or PRs
Resolves #2399
How To Test
dragText
andchooseText
Screenshots (optional)