Skip to content

Illustrative building icon paths are not formatted correctly #1

@iamtash

Description

@iamtash

This is what the svg looks like now:

<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14.4542,6.8337h3.0535c.8236,0,1.4923.6296,1.4923,1.405v9.8564c0,.7763-.6687,1.4049-1.4923,1.4049H2.4924c-.8247,0-1.4924-.6286-1.4924-1.4049V4.9624c0-.7754.6676-1.405,1.4924-1.405h5.2342v-1.6525c0-.7754.6687-1.405,1.4934-1.405h3.7418c.8237,0,1.4924.6296,1.4924,1.405v4.9287ZM14.4542,6.8337v12.6663V6.8337Z" fill="#001531" stroke-width="0"/><path d="M14.4542,6.8337h3.0535c.8236,0,1.4923.6296,1.4923,1.405v9.8564c0,.7763-.6687,1.4049-1.4923,1.4049H2.4924c-.8247,0-1.4924-.6286-1.4924-1.4049V4.9624c0-.7754.6676-1.405,1.4924-1.405h5.2342v-1.6525c0-.7754.6687-1.405,1.4934-1.405h3.7418c.8237,0,1.4924.6296,1.4924,1.405v4.9287ZM14.4542,6.8337v12.6663V6.8337Z" fill="rgba(255,255,255,.9)" stroke-width="0"/><path d="M14.4542,6.8337h3.0535c.8236,0,1.4923.6296,1.4923,1.405v9.8564c0,.7763-.6687,1.4049-1.4923,1.4049H2.4924c-.8247,0-1.4924-.6286-1.4924-1.4049V4.9624c0-.7754.6676-1.405,1.4924-1.405h5.2342v-1.6525c0-.7754.6687-1.405,1.4934-1.405h3.7418c.8237,0,1.4924.6296,1.4924,1.405v4.9287ZM14.4542,6.8337v12.6663" fill="none" stroke="#001531" stroke-linecap="round" stroke-linejoin="round"/><path d="M5.4844,15.2861l.0022.0113M5.4844,11.5005l.0022.0113M5.4844,7.6328l.0022.0113M9.9688,15.2861l.0021.0113M9.9688,11.5005l.0021.0113M9.9688,7.6328l.0021.0113" fill="none" stroke="#001531" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>

But it does not work with the ferui icon library. Here is an example of a correctly formatted svg from the Connectivity logo:

<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M0,9.9996C0,4.4764,4.4774-.001,10.0006-.001s10.0006,4.4774,10.0006,10.0006-4.4774,10.0007-10.0006,10.0007S0,15.5228,0,9.9996ZM10.0006,.6442C4.8338,.6442,.6452,4.8328,.6452,9.9996s4.1886,9.3555,9.3554,9.3555,9.3554-4.1886,9.3554-9.3555S15.1675,.6442,10.0006,.6442Zm.1671,2.7325c-.1032-.0595-.2302-.0595-.3334,0l-5.485,3.1669c-.1031,.0595-.1667,.1696-.1667,.2887v6.3338c0,.1191,.0635,.2291,.1667,.2887l5.485,3.1668c.1031,.0596,.2302,.0596,.3334,0l5.4851-3.1668c.1032-.0596,.1667-.1696,.1667-.2887V6.8323c0-.1191-.0635-.2292-.1667-.2887l-5.4851-3.1669Zm-2.3318,4.7056l2.1651-3.7502,2.1652,3.7503H7.8359Zm3.0758-3.5063l1.9539,3.3843,1.9539-1.1281-3.9078-2.2561Zm-3.0758,4.1729h4.3303s-2.1652,3.7502-2.1652,3.7502l-2.1651-3.7502Zm-.5774,.3334l2.1651,3.7503H5.0933l2.1652-3.7503Zm-.4554-.5447l-1.9539,3.3843V7.4096l1.9539,1.128Zm.3333-.5774l-1.9538-1.128,3.9076-2.2561-1.9537,3.3841Zm2.5311,7.7952l-3.9076-2.2561h3.9076v2.2561Zm.6667,0v-2.2561h3.9078l-3.9078,2.2561Zm2.8646-7.2176l1.9539,3.3841V7.4096l-1.9539,1.1281Zm-.4553,.5447l2.1652,3.7501h-4.3304l2.1652-3.7501Z" fill="#180b25" fill-rule="evenodd"/></svg>

Looks like the only attributes we should have on a path is fill and fill-rule -- we shouldn't have any attributes starting with stroke

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions