material icon indicating copy to clipboard operation
material copied to clipboard

md-button fab with ng-href change icon position

Open luclanet opened this issue 11 years ago • 5 comments

image First with "ng-href", second one without.

luclanet avatar Feb 21 '15 23:02 luclanet

That means anchors and buttons inside of md-button have slightly different styles...ng-href creates an child <a> element instead of <button>. Should be an easy fix, want to create a PR?

marcysutton avatar Feb 22 '15 03:02 marcysutton

What's a PR?

luclanet avatar Feb 22 '15 20:02 luclanet

@luclanet pull request, ie, fix it. ;)

ruiaraujo avatar Feb 22 '15 22:02 ruiaraujo

I've been playing with this in codepen (http://codepen.io/iainmcgin/pen/wBjqyB), I have a proposed fix using absolute positioning for the icon within fabs, but it's kind of ugly and I hope someone finds a better way. Will create a pull request and let everyone discuss it there.

iainmcgin avatar Feb 27 '15 01:02 iainmcgin

The fix from @ruiaraujo looks good, and is included in my codepen for comparison.

iainmcgin avatar Feb 27 '15 15:02 iainmcgin