Skip to content

Fixing SVG icon for sETH and sUSD token#1050

Merged
MRabenda merged 2 commits intoMetaMask:masterfrom
KagamiChan:fix-svg
Jul 6, 2022
Merged

Fixing SVG icon for sETH and sUSD token#1050
MRabenda merged 2 commits intoMetaMask:masterfrom
KagamiChan:fix-svg

Conversation

@KagamiChan
Copy link
Copy Markdown
Contributor

@KagamiChan KagamiChan commented May 19, 2022

This PR fixes token icon for sETH and sUSD.

An SVG XML should contain the ns information according to SVG standard here: https://www.w3.org/TR/SVG11/struct.html#NewDocumentOverview, which is saying:

In all cases, for compliance with the Namespaces in XML Recommendation [XML-NS], an SVG namespace declaration must be provided so that all SVG elements are identified as belonging to the SVG namespace.

Without this, the svg could not be recognized by some parsers and renderers, which might be problematic

Also I suggest we add some CI checks to make sure SVG icons are standard compliant

@KagamiChan KagamiChan requested review from a team and MRabenda as code owners May 19, 2022 16:04
@MRabenda MRabenda merged commit b00d6e5 into MetaMask:master Jul 6, 2022
@KagamiChan KagamiChan deleted the fix-svg branch July 14, 2022 07:48
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.

2 participants