jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
70 stars 21 forks source link

unable to use list-style with imported SVG #38

Closed samOpenforce closed 4 years ago

samOpenforce commented 4 years ago

I am having trouble attempting to use an .svg as a custom list-style icon. Everything appears to be working as expected except that nothing is visible. Can you please confirm the dev-tools output I'm seeing is what I should expect here? Any pointers gratefully received! Many thanks.

jacobmischka commented 4 years ago

This plugin does not support SVGs in CSS, it's for importing them and including them directly in JSX. I think the CSS you're trying to do should work out of the box in Gatsby without this plugin, please disable it or change the path so that this plugin doesn't include it.

samOpenforce commented 4 years ago

Thanks, I appreciate the fast response! Have re-read the docs a bit more carefully and got it working :/