-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add support for Duotone Icons #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely fantastic! Just one typo and we'll get this merged.
README.md
Outdated
### Duotone | ||
|
||
```javascript | ||
<FontAwesomeIcon icon="coffee" color="blue" secondaryColor="red" secondaryOpacoty={ 0.4 } /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick typo "Opacoty"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up fixing this & doing a git rebase fixup... Wasn't worth littering the commit log with yet another commit.
Oops. Also, is the readme ToC auto-generated? I don't think I've added an entry for the Duotone section under Features... Edit: just added it now, along with typo fix |
5bc69d1
to
7f70f73
Compare
Looks great. I don't think the TOC is auto-generated but some of our other projects do this. We just don't have it setup here yet. Thanks for this @schonfeld . Great work. |
Hmm, we got some test failures. I'll take a look at these soon and get a release cut. |
How strange. It's still passing fine on my local? |
We have a matrix of versions we are testing on. So I think something goofy is going on there. I'll dig into it as soon as I can. If you wanna beat me to it you are welcome to but I don't want to put this CI burden on you. |
Sure enough, rn-svg changed how it uses the |
Addresses #45 and #24, and adds support for Duotone Icons.
This adds the [optional]
secondaryColor
andsecondaryOpacity
props, which will fill secondary Duotone layers with the given color and opacity. If no values are explicitly given, as per FA's docs, this will default to using the primary color at 40% opacity.