{"action":"created","issue":{"url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/85","repository_url":"https://api.github.com/repos/ivanvotti/ember-svg-jar","labels_url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/85/comments","events_url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/85/events","html_url":"https://github.com/ivanvotti/ember-svg-jar/issues/85","id":341764436,"node_id":"MDU6SXNzdWUzNDE3NjQ0MzY=","number":85,"title":"Option to pass svg path into the prefixID plugin?","user":{"login":"harrisjose","id":10582112,"node_id":"MDQ6VXNlcjEwNTgyMTEy","avatar_url":"https://avatars3.githubusercontent.com/u/10582112?v=4","gravatar_id":"","url":"https://api.github.com/users/harrisjose","html_url":"https://github.com/harrisjose","followers_url":"https://api.github.com/users/harrisjose/followers","following_url":"https://api.github.com/users/harrisjose/following{/other_user}","gists_url":"https://api.github.com/users/harrisjose/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisjose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisjose/subscriptions","organizations_url":"https://api.github.com/users/harrisjose/orgs","repos_url":"https://api.github.com/users/harrisjose/repos","events_url":"https://api.github.com/users/harrisjose/events{/privacy}","received_events_url":"https://api.github.com/users/harrisjose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-17T04:47:25Z","updated_at":"2018-07-17T11:24:42Z","closed_at":null,"author_association":"NONE","body":"The prefixIDs plugin in svgo accepts a [path option](https://github.com/svg/svgo/blob/master/plugins/prefixIds.js#L137) passed into it via the options object in the `optimize` method. Examples [here](https://github.com/svg/svgo/blob/master/examples/test.js#L85) and [here](https://github.com/harrisjose/ember-inline-svg/blob/master/svg-optimizer.js#L44).\r\n\r\nThis is very useful in cases when a lot of the svgs in a project are exported from Adobe Illustrator and have classes like `st0`, `st1`. All the svgs have the same classes and the styles get messed up because of this.\r\n\r\nPrefixing the svg classes with the relative paths is a nice way to ensure this does not happen. I guess the same could be acheived by prefixing a random value but the path option is nicer cause it's more readable while debugging."},"comment":{"url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/comments/405548989","html_url":"https://github.com/ivanvotti/ember-svg-jar/issues/85#issuecomment-405548989","issue_url":"https://api.github.com/repos/ivanvotti/ember-svg-jar/issues/85","id":405548989,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTU0ODk4OQ==","user":{"login":"ivanvotti","id":1476221,"node_id":"MDQ6VXNlcjE0NzYyMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1476221?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanvotti","html_url":"https://github.com/ivanvotti","followers_url":"https://api.github.com/users/ivanvotti/followers","following_url":"https://api.github.com/users/ivanvotti/following{/other_user}","gists_url":"https://api.github.com/users/ivanvotti/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanvotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanvotti/subscriptions","organizations_url":"https://api.github.com/users/ivanvotti/orgs","repos_url":"https://api.github.com/users/ivanvotti/repos","events_url":"https://api.github.com/users/ivanvotti/events{/privacy}","received_events_url":"https://api.github.com/users/ivanvotti/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T11:24:42Z","updated_at":"2018-07-17T11:24:42Z","author_association":"OWNER","body":"It's related to solved issue #68. It can be fixed with `inlineStyles` plugin like [this](https://github.com/travis-ci/travis-web/pull/1645). Anyway, I'll take a look at the path option when I have time."}}
{"actor":{"display_login":"ivanvotti"}}