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

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

Open
olegkotliarsky opened this issue Feb 10, 2017 · 1 comment
Open

Comments

@olegkotliarsky
Copy link

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
Copy link
Contributor

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.

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

No branches or pull requests

2 participants