klarsys / angular-material-icons

AngularJS directive to use Material Design icons with custom fill-color and size.
MIT License
558 stars 155 forks source link

angular slick carousel does not respect viewBox of the ng-md-icon #71

Open olegkotliarsky opened 7 years ago

olegkotliarsky commented 7 years ago

Hi, we recently added angular-slick to our app, and all the custom SVG images (added with ngMdIconService.addShape and ngMdIconService.addViewBox) get rendered with viewBox svg attribute "0 0 24 24" while each image has viewBox set separately...

This may be not right place for the issue, but was looking for any suggestion/hint.

thank you.

urmilparikh commented 7 years ago

Two options:

  1. Scale the svg (it is lossless) to have viewbox of 24x24. (preferred)
  2. You can specify viewbox in options, just like size. Try adding view-box="0 0 48 48" in html.