-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SVG styles conflict (example) #1645
Conversation
package.json
Outdated
@@ -80,7 +80,7 @@ | |||
"ember-route-action-helper": "^2.0.3", | |||
"ember-sinon": "^1.0.1", | |||
"ember-source": "^2.18.2", | |||
"ember-svg-jar": "^1.1.1", | |||
"ember-svg-jar": "ivanvotti/ember-svg-jar#custom-svgo-module", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
inlineStyles: { | ||
onlyMatchedOnce: false, | ||
removeMatchedSelectors: true | ||
} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
}, | ||
svgJar: { | ||
optimizer: { | ||
svgoModule: SVGO, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Thank you! This is really above-and-beyond in terms of responding to my issue. I have some significant work happening elsewhere in this repository that I need to get to, but I’ll keep this around so we can move to using the |
# Conflicts: # package-lock.json # package.json
#1645 will be better for this but I’m waiting for Percy to be back 😆
The issue I discussed here is affecting the footer logo: evoactivity/ember-svg-jar#68 While #1645 will be a better solution, I’m not ready to merge it.
# Conflicts: # package-lock.json
There’s some rendering weirdness that I can’t spend any more time trying to figure out. This will do!
This is just an example of how the problem can be fixed with SVGO. The new SVGO version has slightly changed plugin defaults, so I had to add
{ removeViewBox: false }
to prevent viewBox deletion.