Closed mlwilkerson closed 2 years ago
Can I work on this issue?
@Bibhavshah Of course! That would be great. To help with that, I've added this commit on a new branch that has revised tests that should all pass when parseSvgText()
implementation is correct.
(You could cherry-pick that commit or just copy/paste the tests into your branch. We don't need necessarily need to keep that branch.)
I'm including a fix for this in #39. Turns out, the duotone icons were rendering visually correctly, because while parseSvgText()
was getting the order backwards, the fa-icon
component was also doing it backwards. In this one case in the universe, two wrongs made it right.
When implementing
parseSvgText()
, I mistakenly thought that the primary layer appears before the secondary layer in the FA Standard SVGs. It's the other way: secondary first.The parsing function and tests should be updated accordingly.