aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
919 stars 297 forks source link

feat(storage-browser): add target _blank to anchor tag in download #6092

Closed ashwinkumar6 closed 2 weeks ago

ashwinkumar6 commented 2 weeks ago

Description of changes

Open s3 objects on a different tab by using target _blank on anchor tag. In case there is a 4xx error in the GET response, it opens it's on a new tab retaining the current state of the StorageBrowser.

Description of how you validated changes

Before Screen Recording 2024-11-14 at 12 10 31 PM

After Screen Recording 2024-11-14 at 12 11 37 PM

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

changeset-bot[bot] commented 2 weeks ago

⚠️ No Changeset found

Latest commit: 03b7174c9515bd34d66cf93e6da66ee574b8c733

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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