Attempted to fix the long-right-angle-arrow SVG to avoid the weird artifacts that were showing up in Safari.
Details
Diff Detail
- Repository
- rCOMM Comm
- Branch
- svg-fix (branched from master)
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
This looks alright for me. What did you end up doing to actually fix the problem? Did you edit the SVG in Illistrator?
Removed fill (as we discussed) but there were still some remaining artifacts (as we saw).
Looked at the vector on Figma and saw that the arrow was a combination of 4 separate path which intersected in a weird way. Flattened them into a single path in Sketch and exported as SVG. Could have just as easily done it in Figma/Illustrator/etc. Just went with Sketch out of convenience.
The IcoMoon docs have a section on preparing the source assets that mentions flattening paths/converting strokes to fills/etc
great, let's favor this diff instead of D3730, we should still add color to the component now that the fill is no longer rgb(128, 128 ,128) via the SWMIcon props.
It might be a good idea to check this on multiple browsers
web/icons/selection.json | ||
---|---|---|
937 ↗ | (On Diff #11890) | I don't know svg, but do we need to have an empty object here? Maybe we can skip this attribute entirely? |
web/icons/selection.json | ||
---|---|---|
937 ↗ | (On Diff #11890) | The IcoMoon tool that we're using for these icons requires that we include the attrs property. But, it looks like we can leave it as an empty array and can exclude the empty "object" inside. Updating this diff to clean that up. |
It might be a good idea to check this on multiple browsers
Good call, especially since the initial issue was browser-specific (Safari).
Tested on Firefox, Chrome, and Safari... and the arrow looks as expected for all of them.