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

[WIP] Add icon support to "Link::Inline" component #255

Merged
merged 8 commits into from
May 11, 2022

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Apr 28, 2022

📌 Summary

This is a spike to understand if it's possible to add support for icon to the Link::Inline component.

Now, while the results show that it's technically possible, I am a bit wary of implementing it, because is likely not used that much (and can be achieved independently, because the content is yielded so the consumer can add generic content (icon + text included) and organize its layout how the see fit.

Another reason for this, is that achieving this in Figma is not possible, because is not a "block" component, so it's more of a style than a component (and you can't apply icons to styles). I can expand on this if it's not obvious what I mean.

Personally I would prefer to document how to do it in the "How to use" section, with a real example, than doing it as done in this PR (likely this will solve only a sub-set of all the possible cases).

@vercel
Copy link

vercel bot commented Apr 28, 2022

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

Name Status Preview Updated
hds-components ✅ Ready (Inspect) Visit Preview May 11, 2022 at 0:51AM (UTC)
hds-flight-website ✅ Ready (Inspect) Visit Preview May 11, 2022 at 0:51AM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2022

⚠️ No Changeset found

Latest commit: 6e2da93

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

@didoo didoo mentioned this pull request Apr 28, 2022
3 tasks
@vercel vercel bot temporarily deployed to Preview – hds-components May 6, 2022 17:53 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 6, 2022 17:53 Inactive
@didoo didoo force-pushed the spike-link-inline branch 2 times, most recently from c4a1e4a to 5035d6a Compare May 9, 2022 10:56
@didoo didoo force-pushed the spike-add-icon-to-link-inline branch from 8e81533 to f580744 Compare May 9, 2022 11:09
@vercel vercel bot temporarily deployed to Preview – hds-components May 9, 2022 11:11 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 9, 2022 11:11 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 9, 2022 11:15 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 9, 2022 11:15 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 10, 2022 13:17 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 10, 2022 13:18 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 11, 2022 10:01 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 11, 2022 10:01 Inactive
… fixed issue with leading/trailing icon

# Conflicts:
#	packages/components/addon/components/hds/link/inline.hbs
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 11, 2022 11:34 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 11, 2022 11:34 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 11, 2022 12:08 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 11, 2022 12:08 Inactive
@didoo didoo marked this pull request as ready for review May 11, 2022 12:51
@didoo didoo merged commit d3af5ef into spike-link-inline May 11, 2022
@didoo didoo deleted the spike-add-icon-to-link-inline branch May 11, 2022 12:51
@vercel vercel bot temporarily deployed to Preview – hds-flight-website May 11, 2022 12:51 Inactive
@vercel vercel bot temporarily deployed to Preview – hds-components May 11, 2022 12:51 Inactive
@didoo
Copy link
Contributor Author

didoo commented May 11, 2022

Decided to merge the branch and ask for a single review instead of two, to speed up the process.

@didoo didoo changed the title [WIP] Add icon support to "Link::Inline" component [WIP] Add icon support to "Link::Inline" component May 11, 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.

1 participant