Add accepted-file-types-label attribute to dt-file-upload#196
Open
Add accepted-file-types-label attribute to dt-file-upload#196
Conversation
Display user-friendly category labels (e.g., "Images, PDFs, Documents") instead of raw MIME types in the upload zone hint text. The label is passed from the theme via a new attribute, enabling translation support.
✅ Deploy Preview for jade-chebakia-17493f ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Collaborator
|
@corsacca This looks pretty good. Can you add a story for this in the stories file of this component? That helps for testing now and in the future as changes are made. |
- wire up acceptedFileTypesLabel in template args and HTML binding - add argType control for the new property - add AcceptedFileTypesLabel story showing friendly label override
Member
Author
|
@cairocoder01, good call. Story has been added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Display user-friendly category labels (e.g., "Images, PDFs, Documents")
instead of raw MIME types in the upload zone hint text. The label is
passed from the theme via a new attribute, enabling translation support.