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

Display a file limit warning where applicable #1199

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

abeddow91
Copy link
Contributor

What are you changing?

Adds a file limit warning underneath the supporting text on file input if a max file size has been provided.

Why?

If there is a file size limit, this should be shown to the user before they try and upload a file.

Screenshot 2024-02-14 at 10 53 51

@abeddow91 abeddow91 requested review from a team as code owners February 14, 2024 11:01
Copy link

changeset-bot bot commented Feb 14, 2024

🦋 Changeset detected

Latest commit: 6cc6c8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/source-react-components-development-kitchen Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@github-actions github-actions bot added the 📦 npm Affects a @guardian package on NPM label Feb 14, 2024
@abeddow91 abeddow91 added the run_chromatic Runs chromatic when label is applied label Feb 14, 2024
@abeddow91 abeddow91 force-pushed the ab/add-limit-warning-to-file-input branch from 4ff0651 to 3ea67a7 Compare February 14, 2024 11:11
@abeddow91 abeddow91 force-pushed the ab/add-limit-warning-to-file-input branch from 3ea67a7 to 00a851e Compare February 14, 2024 16:07
@abeddow91 abeddow91 requested a review from mxdvl February 14, 2024 16:07
@abeddow91 abeddow91 force-pushed the ab/add-limit-warning-to-file-input branch 2 times, most recently from f1534a6 to d96b4f9 Compare February 14, 2024 17:59
@abeddow91 abeddow91 force-pushed the ab/add-limit-warning-to-file-input branch from d96b4f9 to 6cc6c8c Compare February 14, 2024 17:59
@abeddow91 abeddow91 merged commit 0650d80 into main Feb 15, 2024
19 checks passed
@abeddow91 abeddow91 deleted the ab/add-limit-warning-to-file-input branch February 15, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 npm Affects a @guardian package on NPM run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants