Skip to content

Conversation

@didoo
Copy link
Contributor

@didoo didoo commented Jun 20, 2022

📌 Summary

While working on https://github.com/hashicorp/cloud-ui/pull/2853/ @cbfx has found a nasty bug in the Link::Standalone and Link::Inline components. Totally my fault, I did a bad job in #227 and #231 and missed this.

@cbfx opened a PR to fix this bug in #387, but while adding tests to it I noticed also a @isHrefExternal prop was missing from the Link::Inline so I decided the simplest/quickest thing to do was to open a new PR (this one) with all the fixes needed, plus the integration tests added to cover these bugs.

🛠️ Detailed description

In this PR I have:

  • removed the extra target="_blank" and rel="noopener noreferrer” attributes in link standalone and inline
  • added the missing @isHrefExternal drilling prop from the inline link
  • added integration tests for link standalone and inline to cover this bug

👀 How to review

👉 Review commit-by-commit or by files changed

Reviewer's checklist:

  • +1 Percy if applicable
  • Confirm that PR has a changelog update via Changesets if needed

💬 Please consider using conventional comments when reviewing this PR.

@didoo didoo requested a review from alex-ju June 20, 2022 06:42
@vercel
Copy link

vercel bot commented Jun 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hds-components ✅ Ready (Inspect) Visit Preview Jun 20, 2022 at 8:15AM (UTC)
hds-flight-website ✅ Ready (Inspect) Visit Preview Jun 20, 2022 at 8:15AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jun 20, 2022

🦋 Changeset detected

Latest commit: 0d8515f

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

This PR includes changesets to release 1 package
Name Type
@hashicorp/design-system-components Patch

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

@vercel vercel bot temporarily deployed to Preview – hds-flight-website June 20, 2022 06:44 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components June 20, 2022 06:44 Inactive
@didoo didoo mentioned this pull request Jun 20, 2022
2 tasks
@alex-ju alex-ju force-pushed the extension-of-387 branch from c3b7218 to 0d8515f Compare June 20, 2022 08:13
Copy link
Member

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

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

Makes sense. There was a typo in a test so I patched it, added @cbfx to the initial commit (thank you!) and pushed again (hope that's ok). Will release after merge.

@vercel vercel bot temporarily deployed to Preview – hds-flight-website June 20, 2022 08:15 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components June 20, 2022 08:15 Inactive
@alex-ju alex-ju merged commit 64ff13d into main Jun 20, 2022
@alex-ju alex-ju deleted the extension-of-387 branch June 20, 2022 08:20
@hashibot-hds hashibot-hds mentioned this pull request Jun 20, 2022
@cbfx
Copy link
Contributor

cbfx commented Jun 20, 2022

@didoo wow, thank you for the extremely quick turnaround on this!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants