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

Refactor yield helper component #354

Merged
merged 5 commits into from
Jun 9, 2022
Merged

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Jun 9, 2022

📌 Summary

While working on #285 we realized that the yield helper component actually wraps the content in a <div> element, de-facto changing the expected DOM structure of the content. Checking at the codebase this is not necessary, and it's more semantic and less misleading to have this component to just yield the content (it's used as placeholder for contextual components).

🛠️ Detailed description

In this PR I have:

  • refactored yield helper component to be a “pure” yield
  • updated the integration tests
  • updated the documentation for Alert

👀 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.

@vercel
Copy link

vercel bot commented Jun 9, 2022

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

Name Status Preview Updated
hds-components ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 1:52PM (UTC)
hds-flight-website ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 1:52PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2022

🦋 Changeset detected

Latest commit: 8495fed

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

@didoo didoo requested a review from alex-ju June 9, 2022 13:40
@vercel vercel bot temporarily deployed to Preview – hds-flight-website June 9, 2022 13:40 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components June 9, 2022 13:40 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components June 9, 2022 13:52 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website June 9, 2022 13:52 Inactive
@didoo didoo merged commit 6a7f752 into main Jun 9, 2022
@didoo didoo deleted the refactor-yield-helper-component branch June 9, 2022 13:54
@hashibot-hds hashibot-hds mentioned this pull request Jun 9, 2022
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.

2 participants