Skip to content

Conversation

@tomdavies73
Copy link
Contributor

@tomdavies73 tomdavies73 commented Dec 2, 2025

fix #7633

Proposed behaviour

Adds support for the download attribute on Link and then adds this attribute once a file upload is completed in Fileinput

Current behaviour

Currently, there is no support for the download attribute on Link, and there is do download attribute once a file upload is completed in Fileinput

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

Copy link
Contributor

@DipperTheDan DipperTheDan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Only minor comment is regarding the commit message. Just so it's correct in the release docs when this gets merged.

❌ feat(file-input): add downloated attribute to completed state link
✅ feat(file-input): add downloaded attribute to completed state link

@Parsium Parsium self-requested a review December 3, 2025 10:32
@tomdavies73 tomdavies73 changed the title feat(file-input): add downloated attribute to completed state link fix(file-input): add downloaded attribute to completed state link Dec 3, 2025
@divyajindel divyajindel marked this pull request as ready for review December 3, 2025 16:32
@divyajindel divyajindel requested review from a team as code owners December 3, 2025 16:32
when the upload status of the file input is completed, a link is rendered. This now supports the
native download attribute, if the link is suitable for download it will trigger a download event in
the browser when pressed. This ensures behaviour is more consistent between the major browsers

fix #7633
@tomdavies73 tomdavies73 merged commit 749218c into master Dec 4, 2025
28 checks passed
@tomdavies73 tomdavies73 deleted the FE-7532 branch December 4, 2025 14:26
@carbonci
Copy link
Collaborator

carbonci commented Dec 4, 2025

🎉 This PR is included in version 158.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

FileInput: Clicking selected file opens image preview in same tab (Firefox only)

5 participants