-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-button: adding ng-href/ui-sref to md-button icon makes the icon placement higher #2440
Comments
Hi @junereycasuga, can you provide a Codepen or Plunker showing your code running? What is |
+1 |
@uriva - I am confused with your Plunkr. There is no |
@ThomasBurleson The text is raised in my example, similarly to the icon. I thought these two examples might be the same issue. |
I have the same issue; EX: <ul class="menu">
<li><md-button href="#/view1">TAB1</md-button></li>
<li><a href="#/view2">view2</a></li>
</ul> |
I have the same problem. padding-top: 8px; Then It works. But it would be nicer to have it "solved" inside the framework. UPS.... I see my padding solution is not working in all browsers .... |
Agreed, this will definitely be solved inside the framework.
|
I'm linking to 1.0 rc4 and I still see this issue. |
Still seeing the issue with ui-sref on 1.0 rc7 Switching to anchor in the button fixes it: http://stackoverflow.com/questions/32435358/ui-sref-and-md-button-how-it-works |
With v1.0-rc7, my icons in md-button are misaligned regardless a href, ng-href, ui-sref or without anchor. same, when I use ng-md-icon or md-icon or <icon tag <md-list>
<md-list-item ng-repeat="item in admin.tabs track by $index">
<md-button>
<i class="material-icons">{{item.icon}}</i>
{{item.title}}
</md-button>
</md-list-item>
</md-list> |
Yap doesn't work with 1.0.2 neither. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 any update? |
+1 |
1 similar comment
+1 |
@devversion - reopening as this appears to be broken. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
* Currently a normal button is not properly aligning with an anchor button (only when using a flexbox layout parent) The buttons should align properly without using flexbox, since those are actually inline-blocks. See: http://codepen.io/DevVersion/pen/GqBrYb * This accounts also for icon buttons. Having a normal icon button and an anchor button makes the icon alignment incorrect and inconsistent. See: http://codepen.io/DevVersion/pen/dXjVgQ?editors=1010 Fixes angular#2440.
I'm trying to use md-button with icons to navigate through pages. I tried using both ng-href and ui-sref to give link to it, but by doing that, it makes the position of the icon higher than expected
Example code:
Best regards
The text was updated successfully, but these errors were encountered: