-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
c4a1e4a
to
5035d6a
Compare
8e81533
to
f580744
Compare
… fixed issue with leading/trailing icon # Conflicts: # packages/components/addon/components/hds/link/inline.hbs
Decided to merge the branch and ask for a single review instead of two, to speed up the process. |
icon
support to "Link::Inline" component
📌 Summary
This is a spike to understand if it's possible to add support for
icon
to theLink::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).