Skip to content
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

Merged
merged 8 commits into from
Jun 1, 2018
Merged

Fix SVG styles conflict (example) #1645

merged 8 commits into from
Jun 1, 2018

Conversation

voltidev
Copy link
Contributor

@voltidev voltidev commented May 6, 2018

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.

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.

inlineStyles: {
onlyMatchedOnce: false,
removeMatchedSelectors: true
}

This comment was marked as spam.

},
svgJar: {
optimizer: {
svgoModule: SVGO,

This comment was marked as spam.

@backspace
Copy link
Contributor

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 svg-jar component for all our SVGs. I look forward to the new version!

backspace added a commit that referenced this pull request May 30, 2018
#1645 will be better for this but I’m waiting for Percy to
be back 😆
backspace added a commit that referenced this pull request May 30, 2018
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.
There’s some rendering weirdness that I can’t spend any
more time trying to figure out. This will do!
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.

3 participants